Public Member Functions |
|
| TCPSocket (int sd) |
|
ola::io::DescriptorHandle | ReadDescriptor () const |
|
ola::io::DescriptorHandle | WriteDescriptor () const |
|
bool | Close () |
|
GenericSocketAddress | GetLocalAddress () const |
| GenericSocketAddress | GetPeerAddress () const |
|
bool | SetNoDelay () |
|
virtual ssize_t | Send (const uint8_t *buffer, unsigned int size) |
| virtual ssize_t | Send (IOQueue *data) |
|
virtual int | Receive (uint8_t *buffer, unsigned int size, unsigned int &data_read) |
|
virtual bool | SetReadNonBlocking () |
|
int | DataRemaining () const |
|
bool | IsClosed () const |
|
void | SetOnClose (OnCloseCallback *on_close) |
| OnCloseCallback * | TransferOnClose () |
|
void | SetOnData (ola::Callback0< void > *on_read) |
|
void | SetOnWritable (ola::Callback0< void > *on_write) |
|
void | PerformRead () |
|
void | PerformWrite () |
|
bool | ValidReadDescriptor () const |
|
bool | ValidWriteDescriptor () const |
Static Public Member Functions |
|
static TCPSocket * | Connect (const SocketAddress &endpoint) |
|
static bool | SetNonBlocking (DescriptorHandle fd) |
Member Function Documentation
Get the remote IPAddress and port for this socket
The documentation for this class was generated from the following files:
- include/ola/network/TCPSocket.h
- common/network/TCPSocket.cpp