16 #ifndef __IPSDKCORE_SOCKETSPOOLCB_H__ 17 #define __IPSDKCORE_SOCKETSPOOLCB_H__ 21 #pragma warning (push) 22 #pragma warning (disable : 4275) 26 #include <IPSDKCore/Config/Network/NetworkDescriptionTypes.h> 27 #include <IPSDKComm/TcpIp/CollPeersCB.h> 28 #include <IPSDKUtil/Tools/ProcessingResult.h> 29 #include <boost/thread/mutex.hpp> 30 #include <boost/thread/condition_variable.hpp> 31 #include <boost/chrono/duration.hpp> 32 #include <boost/noncopyable.hpp> 38 class RegisterComputerInfo;
44 public boost::noncopyable
70 BoolResult waitForEndOfInit(
const boost::chrono::milliseconds& duration)
const;
84 void onListenFailed(
ipUInt16 acceptorId,
85 const boost::system::error_code& ec);
92 void onConnectionFailed(
const Guid& socketGuid,
94 const boost::system::error_code& ec);
100 void onDeliveryFailed(
const Guid& socketGuid,
130 const boost::system::error_code& ec);
138 void onConnectionClosed(
const Guid& socketGuid,
bool bOnUserRequest);
186 #pragma warning (pop) 188 #endif // __IPSDKCORE_SOCKETSPOOLCB_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
bool isInit() const
retrieve object initialization flag
Definition: SocketsPoolCB.h:175
serializable overlay of boost::asio::endpoint
Definition: EndPoint.h:34
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
AddressColl _pendingAddressColl
collection of expected ip address connections still pending
Definition: SocketsPoolCB.h:155
Definition of import/export macro for library.
boost::shared_ptr< BaseAction > ActionPtr
shared pointer to BaseAction
Definition: ActionTypes.h:54
derived class of asio io address for ipsdk::tcpip namespace integration
Definition: Types.h:86
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
bool _bInit
object initialization flag
Definition: SocketsPoolCB.h:168
boost::mutex _mutex
mutex used for concurrent accesses protection
Definition: SocketsPoolCB.h:161
AddressColl _unexpectedAddressColl
collection of unexpected ip address connections
Definition: SocketsPoolCB.h:158
Class encapsulating an auto initialized uuid.
Definition: Guid.h:27
Definition: SocketDesc.h:35
boost::condition_variable _condition
Definition: SocketsPoolCB.h:165
AddressColl _globalAddressColl
collection of all known ip addresses
Definition: SocketsPoolCB.h:152
Class encapsulating network description for multi-machine processings has seen by local machine...
Definition: LocalNetworkDescription.h:38
callback class, whose methods are automatically called each time an event associated to the attached ...
Definition: SocketsPoolCB.h:43
boost::shared_ptr< BaseSerializationObject > SerializationObjectPtr
shared pointer to a base serialization object
Definition: SerializationTypes.h:23
LocalNetworkDescriptionPtr _pLocalNetworkDescription
network description associated to local computer
Definition: SocketsPoolCB.h:149
Action allowing to register a remote computer information on local machine.
Definition: RegisterComputerInfo.h:34
boost::shared_ptr< LocalNetworkDescription > LocalNetworkDescriptionPtr
shared pointer to local network description
Definition: NetworkDescriptionTypes.h:37
std::set< tcpip::Address > AddressColl
ordered collection of ip address
Definition: NetworkDescriptionTypes.h:25
Callback class, intended to be used by CollPeers class, and whose methods will be called each time an...
Definition: CollPeersCB.h:36
Predefined types for actions management.
uint16_t ipUInt16
Base types definition.
Definition: BaseTypes.h:51