50 virtual Socket::Result
Send();
56 virtual Socket::Result
Recv();
The common base class of Nebula.
Definition refcounted.h:38
Represents an IP address, consisting of a IPv4 host address and a port number.
A TcpClientConnection represents a connected TcpClient on the server side.
Definition stdtcpclientconnection.h:34
Ptr< IO::Stream > sendStream
Definition stdtcpclientconnection.h:62
const IpAddress & GetClientAddress() const
get the client's ip address
Definition stdtcpclientconnection.cc:93
StdTcpClientConnection()
constructor
Definition stdtcpclientconnection.cc:20
virtual Socket::Result Send()
send accumulated content of send stream to server
Definition stdtcpclientconnection.cc:146
virtual ~StdTcpClientConnection()
destructor
Definition stdtcpclientconnection.cc:28
virtual bool Connect(const Ptr< Socket > &s)
connect using provided socket
Definition stdtcpclientconnection.cc:37
virtual const Ptr< IO::Stream > & GetRecvStream()
access to recv stream
Definition stdtcpclientconnection.cc:211
__DeclareClass(StdTcpClientConnection)
virtual Socket::Result Recv()
receive data from server into recv stream
Definition stdtcpclientconnection.cc:158
virtual const Ptr< IO::Stream > & GetSendStream()
access to send stream
Definition stdtcpclientconnection.cc:202
virtual void Shutdown()
shutdown the connection
Definition stdtcpclientconnection.cc:78
Ptr< Socket > socket
Definition stdtcpclientconnection.h:61
Ptr< IO::Stream > recvStream
Definition stdtcpclientconnection.h:63
bool IsConnected() const
get the connection status
Definition stdtcpclientconnection.cc:62
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition debugmessage.h:20