#include <elm/net/ClientSocket.h>
Class implementing a client through a socket connection.
virtual elm::net::ClientSocket::~ClientSocket |
( |
void |
| ) |
|
|
virtual |
void elm::net::ClientSocket::connect |
( |
void |
| ) |
|
throw | ( | Exception |
| ) | | |
|
pure virtual |
Connect the client to the server.
- Exceptions
-
void elm::net::ClientSocket::disconnect |
( |
void |
| ) |
|
throw | ( | Exception |
| ) | | |
|
pure virtual |
Disconnect from the server.
- Exceptions
-
const string & elm::net::ClientSocket::host |
( |
void |
| ) |
const |
|
pure virtual |
Get the host name of the server the client has to connect to.
- Returns
- Server host name.
Obtain the input channel for the connection.
- Returns
- Input channel.
- Exceptions
-
Build a client socket connecting to the given host on the given port.
- Parameters
-
host | Host to connect to (numeric or symbolic form). |
port | Port to connect to. |
Build a client socket connecting to the given host with the given service.
- Parameters
-
host | Host to connect to (numeric or symbolic form). |
service | Service to connect to. |
Build a client socket connecting to the local host on the given port.
- Parameters
-
Obtain the output channel for the connection.
- Returns
- Output channel.
- Exceptions
-
int elm::net::ClientSocket::port |
( |
void |
| ) |
const |
|
pure virtual |
Get the port of the client.
- Returns
- Connection port.
const string & elm::net::ClientSocket::service |
( |
void |
| ) |
const |
|
pure virtual |
If any, get the name of the service of connection.
- Returns
- Connected service name.
The documentation for this class was generated from the following files: