From a0e14bd52328b429c2bf095c52330f65aaa307b3 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 2 Feb 2008 15:52:54 -0800 Subject: [PATCH] formatting cleanup --- src/node/socket.h | 50 ++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/src/node/socket.h b/src/node/socket.h index 39a45672c..bf5e1c8d4 100644 --- a/src/node/socket.h +++ b/src/node/socket.h @@ -78,21 +78,24 @@ public: * \param closeCompleted Callback invoked when the close operation is * completed. */ - void SetCloseCallback (Callback > closeCompleted); + void SetCloseCallback (Callback > closeCompleted); /** - * \param connectionSucceeded this callback is invoked when the connection request - * initiated by the user is successfully completed. The callback is passed - * back a pointer to the same socket object. - * \param connectionFailed this callback is invoked when the connection request - * initiated by the user is unsuccessfully completed. The callback is passed - * back a pointer to the same socket object. - * \param halfClose XXX When exactly is this callback invoked ? If it invoked when the - * other side closes the connection ? Or when I call Close ? + * \param connectionSucceeded this callback is invoked when the + * connection request initiated by the user is successfully + * completed. The callback is passed back a pointer to + * the same socket object. + * \param connectionFailed this callback is invoked when the + * connection request initiated by the user is unsuccessfully + * completed. The callback is passed back a pointer to the + * same socket object. + * \param halfClose XXX When exactly is this callback invoked? If + * it invoked when the other side closes the connection ? + * Or when I call Close ? */ void SetConnectCallback (Callback > connectionSucceeded, - Callback > connectionFailed, - Callback > halfClose); + Callback > connectionFailed, + Callback > halfClose); /** * \brief Accept connection requests from remote hosts * \param connectionRequest Callback for connection request from peer. @@ -100,28 +103,31 @@ public: * ip address and the port number of the connection originator. * This callback must return true to accept the incoming connection, * false otherwise. If the connection is accepted, the - * "newConnectionCreated" callback will be invoked later to give access - * to the user to the socket created to match this new connection. If the - * user does not explicitely specify this callback, all incoming - * connections will be refused. + * "newConnectionCreated" callback will be invoked later to + * give access to the user to the socket created to match + * this new connection. If the user does not explicitly + * specify this callback, all incoming connections will be refused. * \param newConnectionCreated Callback for new connection: when a new * is accepted, it is created and the corresponding socket is passed - * back to the user through this callback. This user callback is passed - * a pointer to the new socket, and the ip address and port number - * of the connection originator. + * back to the user through this callback. This user callback is + * passed a pointer to the new socket, and the ip address and + * port number of the connection originator. * \param closeRequested Callback for connection close request from peer. * XXX: when is this callback invoked ? */ - void SetAcceptCallback (Callback, const Address &> connectionRequest, - Callback, const Address&> newConnectionCreated, - Callback > closeRequested); + void SetAcceptCallback (Callback, + const Address &> connectionRequest, + Callback, + const Address&> newConnectionCreated, + Callback > closeRequested); void SetSendCallback (Callback, uint32_t> dataSent); /** * \brief Receive data * \param receivedData Invoked whenever new data is received. * */ - void SetRecvCallback (Callback, Ptr,const Address&> receivedData); + void SetRecvCallback (Callback, Ptr, + const Address&> receivedData); /** * \param address the address to try to allocate