|
| | SvrCollPeersCB (unsigned short nPortNumber) |
| | constructor More...
|
| |
|
void | setCollPeers (boost::shared_ptr< CollPeers > pCollPeers) |
| | attaches a CollPeers object, and creates an acceptor on listen port passed as argument of the constructor. CB method of the class will be called when events associated to this CollPeers object will occur
|
| |
|
void | deliver (const Guid &rcvSocketGuid, const SerializationObjectPtr &pObj, const DlvCbFun &f=0) |
| | delivers the object 'pObj' to the server, through the writeSocket if current socketsMode equals "OneSocketForReadOneSocketForWrite", or through the socket passed as argument otherwise
|
| |
|
virtual void | onListenFailed (ipsdk::ipUInt16 acceptorId, const boost::system::error_code &ec) |
| | overload of the callback method onListenFailed
|
| |
|
virtual void | onConnectionFailed (const Guid &peerId, const EndPoint &remoteEndPoint, const boost::system::error_code &ec) |
| | overload of the callback method onConnectionFailed
|
| |
|
virtual void | onDeliveryFailed (const Guid &peerId, ipUInt64 nDeliveryId) |
| | overload of the callback method onDeliveryFailed
|
| |
| virtual void | onRead (const tcpip::SocketDesc &socketDesc, const SerializationObjectPtr pObj) |
| | overload of the callback method onRead More...
|
| |
| void | initBuffers () |
| | initializes the available buffers, from the current serverCfg More...
|
| |
|
BufferPtr | popQueueBuffers () |
| | pops a buffer from the queue of available buffers, and returns this popped buffer
|
| |
| virtual void | onConnected (const SocketDesc &socketDesc) |
| | method called each time a new incoming connection is accepted, or a an outcoming connection is established More...
|
| |
| virtual void | onDelivered (const SocketDesc &socketDesc, ipUInt64 nDeliveryId) |
| | method called each time a delivery request succeeds More...
|
| |
| virtual void | onConnectionLost (const SocketDesc &socketDesc, const boost::system::error_code &ec) |
| | method called each time an active connection is broken More...
|
| |
| virtual void | onConnectionClosed (const Guid &peerId, bool bOnUserRequest) |
| | method called when a connection is closed (follows a server connection break, or a user close request) More...
|
| |