#include <fdConnection.h>


Public Member Functions | |
| virtual Notifier | getNotifier () const |
| bool | hasData () const |
Protected Member Functions | |
| virtual void | readNB (void *buffer, const uint64_t bytes) |
| Start a read operation on the connection. | |
| virtual int64_t | readSync (void *buffer, const uint64_t bytes) |
| Finish reading data from the connection. | |
| virtual int64_t | write (const void *buffer, const uint64_t bytes) |
| Write data to the connection. | |
Protected Attributes | |
| int | _readFD |
| The read file descriptor. | |
| int | _writeFD |
| The write file descriptor. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const FDConnection *connection) |
Definition at line 32 of file fdConnection.h.
| virtual Notifier eq::net::FDConnection::getNotifier | ( | ) | const [inline, virtual] |
Reimplemented from eq::net::Connection.
Definition at line 36 of file fdConnection.h.
| void eq::net::FDConnection::readNB | ( | void * | buffer, | |
| const uint64_t | bytes | |||
| ) | [protected, virtual] |
Start a read operation on the connection.
This method is the low-level counterpart to recvNB().
This function returns immediately. The operation's Notifier will signal data availability, upon which readSync() should be used to finish the operation.
| buffer | the buffer receiving the data. | |
| bytes | the number of bytes to read. |
Implements eq::net::Connection.
Definition at line 44 of file fdConnection.cpp.
| int64_t eq::net::FDConnection::readSync | ( | void * | buffer, | |
| const uint64_t | bytes | |||
| ) | [protected, virtual] |
Finish reading data from the connection.
This method is the low-level counterpart to recvSync(). It may return with a partial read.
| buffer | the buffer receiving the data. | |
| bytes | the number of bytes to read. |
Implements eq::net::Connection.
Definition at line 46 of file fdConnection.cpp.
References _readFD, eq::net::Connection::close(), EQINFO, and EQWARN.

| int64_t eq::net::FDConnection::write | ( | const void * | buffer, | |
| const uint64_t | bytes | |||
| ) | [protected, virtual] |
Write data to the connection.
| buffer | the buffer containing the message. | |
| bytes | the number of bytes to write. |
Implements eq::net::Connection.
Definition at line 76 of file fdConnection.cpp.
0.9 by
1.5.8