protlib::TPoverTCPParam Struct Reference

#include <source/ariba/utility/transport/tcpip/protlib/tp_over_tcp.h>

Inherits protlib::ThreadParam.

Collaboration diagram for protlib::TPoverTCPParam:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TPoverTCPParam (unsigned short common_header_length, bool(*const getmsglength)(NetMsg &m, uint32 &clen_bytes), port_t p, const char *threadname="TPoverTCP", uint32 sleep=ThreadParam::default_sleep_time, bool debug_pdu=false, message::qaddr_t source=message::qaddr_transport, message::qaddr_t dest=message::qaddr_signaling, bool sendaborts=false, uint8 tos=0x10)
 constructor

Public Attributes

const port_t port
 port to bind master listener thread to
bool debug_pdu
const message::qaddr_t source
 message source
const message::qaddr_t dest
const unsigned short common_header_length
 what is the length of the common header
bool(*const getmsglength )(NetMsg &m, uint32 &clen_words)
const bool terminate
 should master thread terminate?
const uint8 ip_tos


Detailed Description

this struct conatains parameters that determine the behavior of listener and receiver threads in TPoverTCP
Parameters:
port - port number for master listener thread (server port)
sleep - time (in ms) that listener and receiver wait at a poll() call
d - destination module, where internal message are sent

Definition at line 53 of file tp_over_tcp.h.


Constructor & Destructor Documentation

protlib::TPoverTCPParam::TPoverTCPParam ( unsigned short  common_header_length,
bool(*)(NetMsg &m, uint32 &clen_bytes)  getmsglength,
port_t  p,
const char *  threadname = "TPoverTCP",
uint32  sleep = ThreadParam::default_sleep_time,
bool  debug_pdu = false,
message::qaddr_t  source = message::qaddr_transport,
message::qaddr_t  dest = message::qaddr_signaling,
bool  sendaborts = false,
uint8  tos = 0x10 
) [inline]

constructor

Definition at line 56 of file tp_over_tcp.h.


Member Data Documentation

what is the length of the common header

Definition at line 85 of file tp_over_tcp.h.

Definition at line 80 of file tp_over_tcp.h.

Definition at line 83 of file tp_over_tcp.h.

Referenced by protlib::TPoverTCP::receiver_thread().

bool(*const protlib::TPoverTCPParam::getmsglength)(NetMsg &m, uint32 &clen_words)

function pointer to a function that figures out the msg length in number of 4 byte words it returns false if error occured (e.g., malformed header), result is returned in variable clen_words

Definition at line 93 of file tp_over_tcp.h.

port to bind master listener thread to

Definition at line 75 of file tp_over_tcp.h.

Referenced by protlib::TPoverTCP::master_listener_thread().

should master thread terminate?

Definition at line 92 of file tp_over_tcp.h.


The documentation for this struct was generated from the following file:

Generated on Fri Aug 14 23:39:56 2009 for Ariba by  doxygen 1.5.8