callback class, whose methods are automatically called each time an event associated to the attached SocketsPool occurs
More...
#include <SocketsPoolCB.h>
|
| void | onConnected (const tcpip::SocketDesc &socketDesc) |
| | method called each time a new incoming connection is accepted, or an outcoming connection is established More...
|
| |
| void | onListenFailed (ipUInt16 acceptorId, const boost::system::error_code &ec) |
| | method called when an incoming connection is refused, or when a listen operation is aborted More...
|
| |
| void | onConnectionFailed (const Guid &socketGuid, const tcpip::EndPoint &remoteEndPoint, const boost::system::error_code &ec) |
| | method called when an outcoming connection request fails More...
|
| |
| void | onDeliveryFailed (const Guid &socketGuid, ipUInt64 nDeliveryId) |
| | method called each time a delivery request fails More...
|
| |
| void | onDelivered (const tcpip::SocketDesc &socketDesc, ipUInt64 nDeliveryId) |
| | method called each time a delivery request succeeds More...
|
| |
| void | simpleActionThread (const tcpip::SocketDesc &socketDesc, const ActionPtr &pAction) |
| |
| void | onRead (const tcpip::SocketDesc &socketDesc, const SerializationObjectPtr pObj) |
| | method called each time a new object has been read through a connection More...
|
| |
| void | onConnectionLost (const tcpip::SocketDesc &socketDesc, const boost::system::error_code &ec) |
| | method called each time an active connection is broken More...
|
| |
| void | onConnectionClosed (const Guid &socketGuid, bool bOnUserRequest) |
| | method called when a connection is closed (follows a server connection break, or a user close request) More...
|
| |
| void | notifyConnection (const tcpip::Address &remoteAddress, const AddressColl &slavesAddressColl) |
| | method allowing to notify for remote computer connection Remote computer provides its collection of slave ip addresses More...
|
| |
|
|
class | RegisterComputerInfo |
| |
callback class, whose methods are automatically called each time an event associated to the attached SocketsPool occurs
- Author
- H. Delestre
- Date
- 2013/12/6
- Copyright
- 2013 Reactiv'IP, all right reserved.
◆ getLocalNetworkDescription()
retrieve local network descriptin associated to callback
- Exceptions
-
◆ waitForEndOfInit()
| BoolResult ipsdk::core::SocketsPoolCB::waitForEndOfInit |
( |
const boost::chrono::milliseconds & |
duration | ) |
const |
method allowing to wait for initialization termination
- Exceptions
-
◆ onConnected()
method called each time a new incoming connection is accepted, or an outcoming connection is established
- Parameters
-
| socketDesc | description of the connection (id. + endpoints) |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onListenFailed()
| void ipsdk::core::SocketsPoolCB::onListenFailed |
( |
ipUInt16 |
acceptorId, |
|
|
const boost::system::error_code & |
ec |
|
) |
| |
|
protectedvirtual |
method called when an incoming connection is refused, or when a listen operation is aborted
- Parameters
-
| acceptorId | listen port on which the connection has been refused |
| ec | cause of the error |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onConnectionFailed()
| void ipsdk::core::SocketsPoolCB::onConnectionFailed |
( |
const Guid & |
socketGuid, |
|
|
const tcpip::EndPoint & |
remoteEndPoint, |
|
|
const boost::system::error_code & |
ec |
|
) |
| |
|
protectedvirtual |
method called when an outcoming connection request fails
- Parameters
-
| socketGuid | identifier of the connection |
| remoteEndPoint | remote endpoint to which the peer tried to connect |
| ec | cause of the connection failure |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onDeliveryFailed()
| void ipsdk::core::SocketsPoolCB::onDeliveryFailed |
( |
const Guid & |
socketGuid, |
|
|
ipUInt64 |
nDeliveryId |
|
) |
| |
|
protectedvirtual |
method called each time a delivery request fails
- Parameters
-
| socketGuid | identifier of the connection |
| nDeliveryId | identifier of the delivery request |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onDelivered()
method called each time a delivery request succeeds
- Parameters
-
| socketDesc | description of the connection (id. + endpoints) |
| nDeliveryId | identifier of the delivery request |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ simpleActionThread()
Thread execution function allowing to avoid to block socket data read processing loop when executing simple actions
◆ onRead()
method called each time a new object has been read through a connection
- Parameters
-
| socketDesc | description of the connection (id. + endpoints) |
| pObj | read object |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onConnectionLost()
| void ipsdk::core::SocketsPoolCB::onConnectionLost |
( |
const tcpip::SocketDesc & |
socketDesc, |
|
|
const boost::system::error_code & |
ec |
|
) |
| |
|
protectedvirtual |
method called each time an active connection is broken
- Parameters
-
| socketDesc | description of the connection (id. + endpoints) |
| ec | cause of the connection break |
- Note
- if ec == boost::system::error_code(), the connection break is caused by a user close request
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ onConnectionClosed()
| void ipsdk::core::SocketsPoolCB::onConnectionClosed |
( |
const Guid & |
socketGuid, |
|
|
bool |
bOnUserRequest |
|
) |
| |
|
protectedvirtual |
method called when a connection is closed (follows a server connection break, or a user close request)
- Parameters
-
| socketGuid | identifier of the peer |
| bOnUserRequest | if true, connection was closed because of a user request |
- Exceptions
-
Reimplemented from ipsdk::tcpip::CollPeersCB.
◆ notifyConnection()
| void ipsdk::core::SocketsPoolCB::notifyConnection |
( |
const tcpip::Address & |
remoteAddress, |
|
|
const AddressColl & |
slavesAddressColl |
|
) |
| |
|
protected |
method allowing to notify for remote computer connection Remote computer provides its collection of slave ip addresses
- Exceptions
-
◆ _condition
| boost::condition_variable ipsdk::core::SocketsPoolCB::_condition |
|
mutableprotected |
condition variable used for main thread end of initialization notification
The documentation for this class was generated from the following file:
- /media/reactivipdev/Nightly/IPSDK_Patch/IPSDK_4_1/IPSDK_Nightly/include/public/IPSDKCore/Network/SocketsPoolCB.h