Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/net/ClientSocket.h>
Public Member Functions | |
virtual | ~ClientSocket (void) |
virtual int | port (void) const =0 |
virtual const string & | host (void) const =0 |
virtual const string & | service (void) const =0 |
virtual void | connect (void)=0 |
virtual void | disconnect (void)=0 |
virtual io::InStream & | in (void)=0 |
virtual io::OutStream & | out (void)=0 |
Static Public Member Functions | |
static ClientSocket * | make (const string &host, int port) |
static ClientSocket * | make (const string &host, const string &service) |
static ClientSocket * | make (int port) |
Class implementing a client through a socket connection.
|
inlinevirtual |
Connect the client to the server.
Exception | If there is an error. |
Disconnect from the server.
Exception | If there is an error. |
Get the host name of the server the client has to connect to.
Referenced by ClientSocket::make().
|
pure virtual |
Obtain the input channel for the connection.
Exception | If there is an error. |
|
static |
Build a client socket connecting to the given host with the given service.
host | Host to connect to (numeric or symbolic form). |
service | Service to connect to. |
References ClientSocket::host(), and ClientSocket::service().
|
static |
Build a client socket connecting to the given host on the given port.
host | Host to connect to (numeric or symbolic form). |
port | Port to connect to. |
References ClientSocket::host(), and ClientSocket::port().
|
static |
Build a client socket connecting to the local host on the given port.
port | Port to connect to. |
References ClientSocket::port().
|
pure virtual |
Obtain the output channel for the connection.
Exception | If there is an error. |
|
pure virtual |
If any, get the name of the service of connection.
Referenced by ClientSocket::make().