#include <ClientSocket.h>
Inheritance diagram for ClientSocket:


Public Member Functions | |
| ClientSocket () | |
| Creates an unconnected socket. | |
| ClientSocket (std::string hostName, int port) | |
| Creates a stream socket and connects it to the specified port number on the named host. | |
| int | connect (std::string hostName, int port) |
| Connects the socket to the specified port number on the named host. | |
A socket is an endpoint for communication between two machines.
| ClientSocket::ClientSocket | ( | ) | [inline] |
Creates an unconnected socket.
| ClientSocket::ClientSocket | ( | std::string | hostName, | |
| int | port | |||
| ) | [inline] |
Creates a stream socket and connects it to the specified port number on the named host.
| hostName | The name of the host to connect to, ie "www.sf.net" | |
| port | The port on the server (host) to connect to, ie 80 for http |
| You | should check that Error() returns 0 after creating a ClientSocket with this constructor. |
| int ClientSocket::connect | ( | std::string | hostName, | |
| int | port | |||
| ) |
Connects the socket to the specified port number on the named host.
| hostName | The name of the host to connect to, ie "www.sf.net" | |
| port | The port on the server (host) to connect to, ie 80 for http |
1.4.7