Inheritance diagram for CP_Socket:

Getters | |
| UInt32 | GetAddress () const |
| CP_NetworkAddress | GetNetworkAddress () const |
| UInt32 | GetPeerAddress () const |
| CP_NetworkAddress | GetPeerNetworkAddress () const |
| UInt16 | GetPort () const |
| UInt16 | GetPeerPort () const |
| CP_String | GetHostName () |
| static UInt32 | GetHostByName (const CP_String &inHostName) |
| static CP_NetworkAddress | GetHostAddressByName (const CP_String &inHostName) |
Public Member Functions | |
Constructor / Destructor | |
| CP_Socket () | |
| Constructor. | |
| CP_Socket (UInt32 inAddress, UInt16 inPort) | |
| CP_Socket (const char *inAddress, UInt16 inPort) | |
| CP_Socket (const CP_NetworkAddress &inAddress, UInt16 inPort) | |
| virtual | ~CP_Socket () throw () |
| Destructor. | |
Constructor / Destructor | |
| CP_Socket (int socketDescriptor) | |
| Constructor. | |
Constructor / Destructor | |
| CP_Socket (SOCKET socketDescriptor) | |
| Constructor. | |
Constructor / Destructor | |
| CP_Socket (int socketDescriptor) | |
| Constructor. | |
Protected Member Functions | |
| void | Initialize (void) |
| void | GetConnectedSocketInfo (void) |
Protected Attributes | |
| CP_String | fHostName |
| char | fIsConnected |
| sockaddr_in | fSocketAddress |
| hostent * | fnlp_host |
| int | fSocketDescriptor |
| SOCKET | fSocketDescriptor |
| CP_NetworkAddress | fConnectedSocketAddress |
| UInt16 | fConnectedSocketPort |
| CP_NetworkAddress | fConnectedPeerAddress |
| UInt16 | fConnectedPeerPort |
|
|
Constructor.
|
|
||||||||||||
|
Constructor.
|
|
||||||||||||
|
Constructor.
|
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Constructor.
|
|
|
|
|
|
|
|
|
Establish a connection with the host.
|
|
||||||||||||||||
|
Establish a connection with the host.
|
|
||||||||||||||||
|
Establish a connection with the host.
|
|
||||||||||||||||
|
Establish a connection with the host.
|
|
|
Sends data over the socket connection.
|
|
||||||||||||
|
Sends data over the socket connection.
|
|
||||||||||||
|
Receives data from the socket connection.
|
|
|
Returns the number of bytes available on the socket connection.
|
|
|
Returns if there are bytes available at the socket connection.
|
|
|
Returns the host from the passed in host name.
|
|
|
Returns the host from the passed in host name.
|
|
|
Return an UInt32 containing the address we are communicating over.
|
|
|
Return an GetNetworkAddress containing the address we are communicating over.
|
|
|
Return an UInt32 containing the peer address we are communicating with.
|
|
|
Return a CP_NetworkAddress containing the peer address we are communicating with.
|
|
|
Returns the port we are communicating over.
|
|
|
Returns the port of the peer are communicating with.
|
|
|
Returns the name of the host as a string.
|
|
|
Return an UInt32 containing the peer address we are communicating with.
|
|
|
Closes the connection to the socket.
|
|
|
Closes the input connection of the socket.
|
|
|
Closes the output connection of the socket.
|
|
|
Return true if we have a current connection.
|
|
|
Returns if the connection has closed.
|
|
|
Initializes the socket members called from every constructor.
|
|
|
|
|
|
|
|
|
CP_String containing the name of the host. |
|
|
flag to indicate if we are currently connected. |
|
|
a sockaddr_in structure with the current address info. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.0