CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::AcceptedPacketSocketInfo Class Reference

Result of a packet socket accept operation. More...

Public Member Functions

 AcceptedPacketSocketInfo ()
 Creates an empty info. More...
 
 AcceptedPacketSocketInfo (const std::string &host, const std::shared_ptr< PacketSocket > &pPacketSocket)
 Creates an info around host and pPacketSocket. More...
 
const std::string & host () const
 Gets the host. More...
 
const std::shared_ptr< PacketSocket > & socket () const
 Gets the socket. More...
 
 operator bool () const
 Returns true if this info is not empty. More...
 

Private Attributes

std::string m_host
 
std::shared_ptr< PacketSocketm_pPacketSocket
 

Detailed Description

Result of a packet socket accept operation.

Constructor & Destructor Documentation

◆ AcceptedPacketSocketInfo() [1/2]

catapult::ionet::AcceptedPacketSocketInfo::AcceptedPacketSocketInfo ( )
inline

Creates an empty info.

◆ AcceptedPacketSocketInfo() [2/2]

catapult::ionet::AcceptedPacketSocketInfo::AcceptedPacketSocketInfo ( const std::string &  host,
const std::shared_ptr< PacketSocket > &  pPacketSocket 
)
inlineexplicit

Creates an info around host and pPacketSocket.

Member Function Documentation

◆ host()

const std::string& catapult::ionet::AcceptedPacketSocketInfo::host ( ) const
inline

Gets the host.

◆ operator bool()

catapult::ionet::AcceptedPacketSocketInfo::operator bool ( ) const
inlineexplicit

Returns true if this info is not empty.

◆ socket()

const std::shared_ptr<PacketSocket>& catapult::ionet::AcceptedPacketSocketInfo::socket ( ) const
inline

Gets the socket.

Member Data Documentation

◆ m_host

std::string catapult::ionet::AcceptedPacketSocketInfo::m_host
private

◆ m_pPacketSocket

std::shared_ptr<PacketSocket> catapult::ionet::AcceptedPacketSocketInfo::m_pPacketSocket
private

The documentation for this class was generated from the following file: