|
void | Close (void) |
| Close a Socket.
|
|
void | Server (int port, int MaxQueue) |
|
int | ConnectTo (const char *address, int port) |
|
int | WaitForConnection (void) |
| Wait for a connection.
|
|
int | Receive (unsigned char *Buffer, int MaxLength) |
|
int | ReceiveExactly (unsigned char *Buffer, int Length) |
|
int | Send (unsigned char *Buffer) |
|
int | Send (unsigned char *Buffer, int Length) |
|
int | Sendf (unsigned char *format,...) |
|
|
int | Socket |
| Socket Descriptor.
|
|
int | Port |
| Port Number.
|
|
int Network::ConnectTo |
( |
const char * |
address, |
|
|
int |
port |
|
) |
| |
Connect to a server
- Parameters
-
[in] | address | Address to connect to |
[in] | port | Port to use |
int Network::Receive |
( |
unsigned char * |
Buffer, |
|
|
int |
MaxLength |
|
) |
| |
Receive data from the socket
- Parameters
-
[in] | Socket | Socket to use |
[out] | Buffer | Pointer to memory location where data read is to be stored |
[in] | MaxLength | Maximum data to be read |
- Returns
- Number of bytes read
int Network::ReceiveExactly |
( |
unsigned char * |
Buffer, |
|
|
int |
Length |
|
) |
| |
Receive a complete Packet from the socket
- Parameters
-
[in] | Socket | Socket to use |
[out] | Buffer | Pointer to memory location where data read is to be stored |
[in] | Length | Maximum data to be read |
- Returns
- Number of bytes read
int Network::Send |
( |
unsigned char * |
Buffer | ) |
|
Send a string
- Parameters
-
[in] | Socket | Socket to use |
[out] | Buffer | Pointer to memory location where data to be sent is stored |
int Network::Send |
( |
unsigned char * |
Buffer, |
|
|
int |
Length |
|
) |
| |
Send Data
- Parameters
-
[in] | Socket | Socket to use |
[in] | Buffer | Pointer to memory location where data to be sent is stored |
[in] | Length | Number of bytes to be sent |
int Network::Sendf |
( |
unsigned char * |
format, |
|
|
|
... |
|
) |
| |
Send a Formatted String
- Parameters
-
[in] | Socket | Socket to use |
[out] | format | Format string |
[in] | ... | Additional variables |
void Network::Server |
( |
int |
port, |
|
|
int |
MaxQueue |
|
) |
| |
Open a server socket
- Parameters
-
The documentation for this class was generated from the following files: