List of all members.
Public Member Functions |
|
| DummyFinderTcp (EventLoop &e, XorpFd fd, const char *name) |
| bool | read_event (int errval, const uint8_t *data, uint32_t data_bytes) |
| | Method to be implemented by derived classes that is called when data arrives or an error occurs when processing when data arrives.
|
| void | write_event (int errval, const uint8_t *data, uint32_t data_bytes) |
| | Method to be implemented by derived classes that is called when data writing completes or an error occurs when processing when write.
|
|
void | write_msg () |
|
uint32_t | read_events () const |
|
uint32_t | write_events () const |
|
bool | can_write () const |
Protected Attributes |
|
const char * | _name |
|
char | _buf [255] |
|
uint32_t | _reads |
|
uint32_t | _writes |
Member Function Documentation
| bool DummyFinderTcp::read_event |
( |
int |
errval, |
|
|
const uint8_t * |
data, |
|
|
uint32_t |
data_bytes |
|
) |
| [inline, virtual] |
Method to be implemented by derived classes that is called when data arrives or an error occurs when processing when data arrives.
- Parameters:
-
| errval | error code, values are equivalent to errno. |
| data | pointer to data |
| data_bytes | size of data. |
- Returns:
- true if the data was processed without an error and the connection was kept, otherwise false.
Implements FinderTcpBase.
| void DummyFinderTcp::write_event |
( |
int |
errval, |
|
|
const uint8_t * |
data, |
|
|
uint32_t |
data_bytes |
|
) |
| [inline, virtual] |
Method to be implemented by derived classes that is called when data writing completes or an error occurs when processing when write.
- Parameters:
-
| errval | error code, values are equivalent to errno. |
Implements FinderTcpBase.
The documentation for this class was generated from the following file:
- /home/greearb/git/xorp.ct.github/xorp/libxipc/tests/test_finder_tcp.cc