A Socket contains a reference count that wraps a SocketImpl object
![]() | Socket (const string& host, int port) Creates the socket given the host and the port |
![]() | Socket (SocketImpl* impl = NULL) Creates the socket given the SocketImpl |
![]() | ~Socket () Decrements the ref_cnt by 1 and when it goes to 0 destroys this object |
![]() | getHost () const Returns the host of the remote server |
![]() | getPort () const Returns the port number of the remote server |
![]() | getInputStream () const Returns an InputStream associated with this Socket |
![]() | getOutputStream () const Returns an OutputStream associated with this Socket |
![]() | connect () Opens a connection to the host |
![]() | close () Closes the connection and the streams associated with the socket |
![]() | paramString () const Returns a string representation for Socket which is used for debugging purposes |
![]() | instanceOf () |
A Socket contains a reference count that wraps a SocketImpl object. It is used to indirectly access the SockImpl methods.
Socket(SocketImpl* impl = NULL)
virtual ~Socket()
const string& getHost() const
int getPort() const
InputStream& getInputStream() const
InputStream OutputStream& getOutputStream() const
OutputStream void connect()
void close()
string paramString() const
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de