xorp

STCPRequestHandler Class Reference

List of all members.

Public Member Functions

 STCPRequestHandler (XrlPFSTCPListener &parent, XorpFd sock)
void dispatch_request (uint32_t seqno, const uint8_t *buffer, size_t bytes)
void transmit_response (const XrlError &e, const XrlArgs *pResponse, uint32_t seqno)
void ack_helo (uint32_t seqno)
void read_event (BufferedAsyncReader *reader, BufferedAsyncReader::Event e, uint8_t *buffer, size_t buffer_bytes)
void update_writer (AsyncFileWriter::Event, const uint8_t *, size_t, size_t)
void postpone_death ()
void die (const char *reason, bool verbose=true)
bool response_pending () const
string toString () const

Static Protected Attributes

static const TimeVal DEFAULT_KEEPALIVE_TIMEOUT = TimeVal(180, 0)

Private Member Functions

void do_dispatch (const uint8_t *packed_xrl, size_t packed_xrl_bytes, XrlDispatcherCallback response)
void parse_header (const uint8_t *buffer, size_t buffer_bytes)
void parse_payload ()

Private Attributes

XrlPFSTCPListener_parent
XorpFd _sock
BufferedAsyncReader _reader
AsyncFileWriter _writer
list< vector< uint8_t > > _responses
uint32_t _responses_size
TimeVal _keepalive_timeout
XorpTimer _life_timer

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