Transport Protocol

Collaboration diagram for Transport Protocol:

Classes

class  protlib::TP
 transport protocol base class More...
class  protlib::TPError
 Transport Protocol Error. More...
class  protlib::TPErrorBadDestAddress
class  protlib::TPErrorArgsNotInit
class  protlib::TPErrorUnreachable
class  protlib::TPErrorInternal
class  protlib::TPErrorPayload
class  protlib::TPErrorInitFailed
class  protlib::TPErrorSendFailed
class  protlib::TPErrorConnectSetupFail
class  protlib::TPErrorCloseInd
class  protlib::TPErrorAbortInd

Namespaces

namespace  protlib

Functions

 protlib::TPError::TPError (tp_error_t e)
 constructor
virtual const char * protlib::TPError::getstr () const =0
 get error string
virtual const char * protlib::TPError::what () const throw ()
virtual const char * protlib::TPErrorBadDestAddress::getstr () const
 get error string
virtual const char * protlib::TPErrorArgsNotInit::getstr () const
 get error string
virtual const char * protlib::TPErrorUnreachable::getstr () const
 get error string
virtual const char * protlib::TPErrorInternal::getstr () const
 get error string
virtual const char * protlib::TPErrorPayload::getstr () const
 get error string
virtual const char * protlib::TPErrorInitFailed::getstr () const
 get error string
 protlib::TPErrorSendFailed::TPErrorSendFailed (int current_errno=0)
virtual const char * protlib::TPErrorSendFailed::getstr () const
 get error string
int protlib::TPErrorSendFailed::get_reason () const
 returns saved value of errno from send call
virtual const char * protlib::TPErrorConnectSetupFail::getstr () const
 get error string
virtual const char * protlib::TPErrorCloseInd::getstr () const
 get error string
virtual const char * protlib::TPErrorAbortInd::getstr () const
 get error string
 protlib::TP::TP (protocol_t p, const string &pname, const string &tpn, const unsigned short common_header_length, bool(*const getmsglength)(NetMsg &netmsg, uint32 &msglen), uint32 mp=(uint32)-1)
 constructor
virtual protlib::TP::~TP ()=0
 virtual destructor
protocol_t protlib::TP::get_underlying_protocol () const
 get protocol ID
string protlib::TP::get_underlying_protocol_name () const
 get protocol name
string protlib::TP::get_tp_name () const
 get TP name
uint32 protlib::TP::get_max_payload () const
 get maximum payload
void protlib::TP::check_send_args (const NetMsg &msg, const address &addr) const
 check send arguments

Variables

const tp_error_t protlib::TPError::errtype
 error code
typedef int protlib::socketfd_t
 socket type interface
typedef unsigned int protlib::associd_t

Typedef Documentation

typedef unsigned int protlib::associd_t

Definition at line 44 of file assocdata.h.

typedef int protlib::socketfd_t

socket type interface

Definition at line 43 of file assocdata.h.


Function Documentation

void protlib::TP::check_send_args ( const NetMsg msg,
const address addr 
) const [inherited]

uint32 protlib::TP::get_max_payload (  )  const [inherited]

get maximum payload

Definition at line 80 of file tp.cpp.

References protlib::TP::max_payload.

int protlib::TPErrorSendFailed::get_reason (  )  const [inline, inherited]

returns saved value of errno from send call

Definition at line 131 of file tperror.h.

References protlib::TPErrorSendFailed::saved_errno.

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

string protlib::TP::get_tp_name (  )  const [inherited]

get TP name

Get the name of this TP implementation.

Definition at line 78 of file tp.cpp.

References protlib::TP::tp_name.

protocol_t protlib::TP::get_underlying_protocol (  )  const [inherited]

get protocol ID

Get the ID of the underlying transport protocol.

Definition at line 72 of file tp.cpp.

References protlib::TP::protocol.

Referenced by protlib::TPoverUDP::listener_thread().

string protlib::TP::get_underlying_protocol_name (  )  const [inherited]

get protocol name

Get the name of the underlying transport protocol.

Definition at line 75 of file tp.cpp.

References protlib::TP::protoname.

virtual const char* protlib::TPErrorAbortInd::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 152 of file tperror.h.

virtual const char* protlib::TPErrorCloseInd::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 145 of file tperror.h.

virtual const char* protlib::TPErrorConnectSetupFail::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 138 of file tperror.h.

virtual const char* protlib::TPErrorSendFailed::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 130 of file tperror.h.

virtual const char* protlib::TPErrorInitFailed::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 122 of file tperror.h.

virtual const char* protlib::TPErrorPayload::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 115 of file tperror.h.

virtual const char* protlib::TPErrorInternal::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 107 of file tperror.h.

virtual const char* protlib::TPErrorUnreachable::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 100 of file tperror.h.

virtual const char* protlib::TPErrorArgsNotInit::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 93 of file tperror.h.

virtual const char* protlib::TPErrorBadDestAddress::getstr (  )  const [inline, virtual, inherited]

get error string

Implements protlib::TPError.

Definition at line 85 of file tperror.h.

virtual const char* protlib::TPError::getstr (  )  const [pure virtual, inherited]

protlib::TP::TP ( protocol_t  p,
const string &  pname,
const string &  tpn,
const unsigned short  common_header_length,
bool(*)(NetMsg &netmsg, uint32 &msglen)  getmsglength,
uint32  mp = (uint32)-1 
) [inherited]

constructor

Set ID of the underlying transport protocol, e.g. TCP, SCTP or UDP. Init is set false here, set to true in constructors of derived classes if initialization is done. If the maximum payload is greater than the maximum size of a network message, it is decreased.

Definition at line 57 of file tp.cpp.

protlib::TPError::TPError ( tp_error_t  e  )  [inline, inherited]

constructor

Definition at line 69 of file tperror.h.

protlib::TPErrorSendFailed::TPErrorSendFailed ( int  current_errno = 0  )  [inline, inherited]

Definition at line 129 of file tperror.h.

virtual const char* protlib::TPError::what (  )  const throw () [inline, virtual, inherited]

Get a printable string representation of the error.

Warning:
Note that the data this pointer refers to still belongs to the exception object. It is only valid as long as the exception object exists.
Returns:
the error message

Reimplemented from protlib::ProtLibException.

Definition at line 73 of file tperror.h.

References protlib::TPError::getstr().

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

protlib::TP::~TP (  )  [pure virtual, inherited]

virtual destructor

TP destructor does nothing.

Definition at line 69 of file tp.cpp.

References protlib::TP::init.


Variable Documentation

const tp_error_t protlib::TPError::errtype [inherited]

error code

Definition at line 75 of file tperror.h.


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