TCP/IP socket connection.
More...
#include <tcp_connection.h>
TCP/IP socket connection.
virtual void uicore::TCPConnection::close |
( |
| ) |
|
|
pure virtual |
Blocking connect to end point.
virtual SocketName uicore::TCPConnection::local_name |
( |
| ) |
|
|
pure virtual |
Returns the socket name of the local end point.
virtual int uicore::TCPConnection::read |
( |
void * |
data, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
Read data from TCP socket.
- Returns
- Bytes read, 0 if remote closed connection, or -1 if buffer is empty
virtual SocketName uicore::TCPConnection::remote_name |
( |
| ) |
|
|
pure virtual |
Returns the socket name of the peer end point.
virtual int uicore::TCPConnection::write |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
Write data to TCP socket.
- Returns
- Bytes written, or -1 if buffer is full
The documentation for this class was generated from the following file: