xorp

DummyFinderTcp Class Reference

Inheritance diagram for DummyFinderTcp:
FinderTcpBase NONCOPYABLE

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:
errvalerror code, values are equivalent to errno.
datapointer to data
data_bytessize 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:
errvalerror code, values are equivalent to errno.

Implements FinderTcpBase.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations