TCP connection socket I/O device. More...
Derived from: | public CL_IODevice |
Derived by: | None |
Group: | Socket (Network) |
#include <ClanLib/network.h>
Class Members:
Enumerations: | |
Seeking modes. |
| |
Returns true if this object is invalid. | |
Throw an exception if this object is invalid. | |
Returns the size of data stream. | |
Returns the position in the data stream. | |
Returns true if the input source is in little endian mode. | |
Returns the provider for this object. |
| |
Send data to device. | |
Receive data from device. | |
Peek data from device (data is left in the buffer). | |
Seek in data stream. | |
Alias for receive(data, len, receive_all) | |
Alias for send(data, len, send_all) | |
Changes input data endianess to the local systems mode. | |
Changes input data endianess to big endian mode. (Default is little endian) | |
Changes input data endianess to little endian mode. This is the default setting. | |
Writes a signed 64 bit integer to output source. | |
Writes an unsigned 64 bit integer to output source. | |
Writes a signed 32 bit integer to output source. | |
Writes an unsigned 32 bit integer to output source. | |
Writes a signed 16 bit integer to output source. | |
Writes an unsigned 16 bit integer to output source. | |
Writes a signed 8 bit integer to output source. | |
Writes an unsigned 8 bit integer to output source. | |
Writes a float to output source. | |
Writes a string to the output source. | |
Writes a nul terminated string to the output source. | |
Writes a text string to the output source. | |
Reads a signed 64 bit integer from input source. | |
Reads an unsigned 64 bit integer from input source. | |
Reads a signed 32 bit integer from input source. | |
Reads an unsigned 32 bit integer from input source. | |
Reads a signed 16 bit integer from input source. | |
Reads an unsigned 16 bit integer from input source. | |
Reads a signed 8 bit integer from input source. | |
Reads an unsigned 8 bit integer from input source. | |
Reads a float from input source. | |
Reads a string from the input source. | |
Reads a nul terminated string from the input source. | |
Reads a string from the input source where the source is a text file. | |
Create a new CL_IODevice referencing the same resource. |
| |
| |
Get Handle. | |
Get Local name. | |
Get Remote name. | |
Get Read event. | |
Get Write event. |
| |
Connect. | |
Set handle. | |
Performs a graceful shutdown, ensuring all data is sent before the connection is closed. | |
Performs an abortive shutdown, closing the connection immediately. | |
Disables or enables buffering data before it is sent. | |
Enables or disables transmitting keep-alive packets. |