CatapultServer
v0.5.0.1 (Elephant)
|
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< PacketSocket > | m_pPacketSocket |
Result of a packet socket accept operation.
|
inline |
Creates an empty info.
|
inlineexplicit |
Creates an info around host and pPacketSocket.
|
inline |
Gets the host.
|
inlineexplicit |
Returns true
if this info is not empty.
|
inline |
Gets the socket.
|
private |
|
private |