![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Callback class, intended to be used by CollPeers class, and whose methods will be called each time an event associated to CollPeers occurs The user has to inherit from this class if he wants to specify a given behaviour in reaction to these events. More...
#include <CollPeersCB.h>
Public Member Functions | |
Constructors and destructors | |
| CollPeersCB () | |
| virtual | ~CollPeersCB () |
Protected Member Functions | |
| 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 | onListenFailed (ipsdk::ipUInt16 acceptorId, const boost::system::error_code &ec) |
| virtual void | onConnectionFailed (const Guid &peerId, const EndPoint &remoteEndPoint, const boost::system::error_code &ec) |
| virtual void | onDeliveryFailed (const Guid &peerId, ipUInt64 nDeliveryId) |
| method called each time a delivery request fails More... | |
| virtual void | onDelivered (const SocketDesc &socketDesc, ipUInt64 nDeliveryId) |
| method called each time a delivery request succeeds More... | |
| virtual void | onRead (const SocketDesc &socketDesc, const SerializationObjectPtr pObj) |
| method called each time a new object has been read through a connection 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... | |
Friends | |
| class | CollPeers |
Callback class, intended to be used by CollPeers class, and whose methods will be called each time an event associated to CollPeers occurs The user has to inherit from this class if he wants to specify a given behaviour in reaction to these events.
|
inlineprotectedvirtual |
method called each time a new incoming connection is accepted, or a an outcoming connection is established
| socketDesc | description of the connection (id. + endpoints) |
Reimplemented in CliCollPeersCB, and ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called when an incoming connection is refused, or when a listen operation is aborted
| acceptorId | listen port on which the connection has been refused |
| ec | set to indicate what error occurred |
Reimplemented in CliCollPeersCB, SvrCollPeersCB, and ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called when an outcoming connection request fails
| peerId | identifier of the connection |
| remoteEndPoint | remote endpoint |
| ec | set to indicate what error occurred |
Reimplemented in CliCollPeersCB, SvrCollPeersCB, and ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called each time a delivery request fails
| peerId | identifier of the connection |
| nDeliveryId | identifier of the delivery request |
Reimplemented in CliCollPeersCB, SvrCollPeersCB, and ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called each time a delivery request succeeds
| socketDesc | description of the connection (id. + endpoints) |
| nDeliveryId | identifier of the delivery request |
Reimplemented in ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called each time a new object has been read through a connection
| socketDesc | description of the connection (id. + endpoints) |
| pObj | read object |
Reimplemented in CliCollPeersCB, SvrCollPeersCB, and ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called each time an active connection is broken
| socketDesc | description of the connection (id. + endpoints) |
| ec | set to indicate what error occurred |
Reimplemented in ipsdk::core::SocketsPoolCB.
|
inlineprotectedvirtual |
method called when a connection is closed (follows a server connection break, or a user close request)
| peerId | identifier of the peer |
| bOnUserRequest | if true, connection was closed because of a user request |
Reimplemented in ipsdk::core::SocketsPoolCB.
1.8.14