15 #ifndef __IPSDKCORE_SOCKETSPOOL_H__ 16 #define __IPSDKCORE_SOCKETSPOOL_H__ 26 #pragma warning (push) 27 #pragma warning (disable : 4251 4275) 29 #include <IPSDKComm/TcpIp/SocketDesc.h> 32 #include <IPSDKUtil/Tools/Guid.h> 35 #include <boost/noncopyable.hpp> 40 class LocalNetworkDescription;
89 void asyncClose(
const Guid& socketGuid);
131 void clearCnxLossCB(
const Guid& socketGuid);
142 void removeCnxLossCB(
const Guid& socketGuid,
const Guid& cbId);
152 boost::optional<tcpip::SocketDesc> getSocketDesc(
const Guid& socketGuid)
const;
159 boost::optional<Guid> getGuid(
const tcpip::Address& remoteAddress)
const;
186 #pragma warning (pop) 188 #endif // __IPSDKCORE_SOCKETSPOOL_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::shared_ptr< CollPeers > CollPeersPtr
typedefs for shared_ptr on main tcpip classes
Definition: Types.h:109
boost::shared_ptr< SocketsPoolCB > _pSocketsPoolCB
pointer to used call back object
Definition: SocketsPool.h:171
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
ipUInt16 _portNumber
used socket port number
Definition: SocketsPool.h:177
Definition of import/export macro for library.
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
Base types for multiplatform compatibility.
Class encapsulating an auto initialized uuid.
Definition: Guid.h:27
boost::function3< void, const Guid &, ipUInt64, bool > DlvCbFun
function prototype associated to socket delivery callback
Definition: Types.h:116
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
Predefined types for ip addresses management.
tcpip::Address _localAddress
tcpip address informations associated to local computer
Definition: SocketsPool.h:174
Singleton used for socket pool management.
Definition: SocketsPool.h:46
uint16_t ipUInt16
Base types definition.
Definition: BaseTypes.h:51
tcpip::CollPeersPtr _pCollPeers
pointer to implementation object
Definition: SocketsPool.h:168
boost::function2< void, const SocketDesc &, const boost::system::error_code & > CnxLossCbFun
function prototype associated to socket connection loss callback
Definition: Types.h:120