Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

InnerSocket Class Reference

#include <InnerSocket.h>

List of all members.

Public Member Functions

 InnerSocket ()
 ~InnerSocket ()
void Open ()
void Bind (char *n)
void Connect (char *n)
void Send (const DCDT_Msg *msg)
DCDT_MsgReceive ()
void SendHS (char *to, HSMsgHeader *header, char *payload)
void ReceiveHS (HSMsgHeader *&header, char *&payload)
void Close ()
 Close the inner channel and delete the associated file.
void ForcedClose ()
void SetLostTimer (int usec)
void LostTimerOn ()
void LostTimerOff ()
void SetConnTimer (int usec)
void ConnTimerOn ()
void ConnTimerOff ()
void SetSendTimer (int usec)
void SendTimerOn ()
void SendTimerOff ()
void UnblockSend ()
void SetReceiveTimer (int usec)
void ReceiveTimerOn ()
void ReceiveTimerOff ()
void UnblockReceive ()

Protected Attributes

int sockfd
int opened
int bound
int connected
int tconn_flag
int tlost_flag
int tsend_flag
int trecv_flag
int unblock_send_flag
int unblock_recv_flag
timeval tconn_value tlost_value
tsend_value 
trecv_value
char * name


Constructor & Destructor Documentation

InnerSocket::InnerSocket  )  [inline]
 

Definition at line 45 of file InnerSocket.h.

InnerSocket::~InnerSocket  )  [inline]
 

Definition at line 54 of file InnerSocket.h.


Member Function Documentation

void InnerSocket::Bind char *  n  )  [inline]
 

Definition at line 104 of file InnerSocket.h.

References bound, DCDT_TRC_COMM, name, opened, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::Open().

void InnerSocket::Close  )  [inline]
 

Close the inner channel and delete the associated file.

Exceptions:
ConnError 

Definition at line 454 of file InnerSocket.h.

References bound, connected, DCDT_TRC_COMM, name, opened, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::Close().

void InnerSocket::Connect char *  n  )  [inline]
 

Definition at line 131 of file InnerSocket.h.

References connected, DCDT_TRC_COMM, opened, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::StartConn(), and DCDT_InnerChannel::WaitConn().

void InnerSocket::ConnTimerOff  )  [inline]
 

Definition at line 505 of file InnerSocket.h.

References tconn_flag.

Referenced by DCDT_InnerChannel::ConnTimerOff().

void InnerSocket::ConnTimerOn  )  [inline]
 

Definition at line 500 of file InnerSocket.h.

References tconn_flag.

Referenced by DCDT_InnerChannel::ConnTimerOn(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::ForcedClose  )  [inline]
 

Definition at line 466 of file InnerSocket.h.

References bound, connected, DCDT_TRC_COMM, name, opened, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::Stop().

void InnerSocket::LostTimerOff  )  [inline]
 

Definition at line 489 of file InnerSocket.h.

References tlost_flag.

Referenced by DCDT_InnerChannel::LostTimerOff().

void InnerSocket::LostTimerOn  )  [inline]
 

Definition at line 484 of file InnerSocket.h.

References tlost_flag.

Referenced by DCDT_InnerChannel::LostTimerOn(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::Open  )  [inline]
 

Definition at line 91 of file InnerSocket.h.

References DCDT_TRC_COMM, opened, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::Open().

DCDT_Msg * InnerSocket::Receive  )  [inline]
 

Definition at line 285 of file InnerSocket.h.

References DCDT_MsgHeader, DCDT_TRC_COMM, DCDT_Msg::ReadPayloadLen(), DCDT_Msg::SetPayload(), sockfd, TRC_PRINT, and trecv_value.

Referenced by DCDT_InnerChannel::Receive(), and DCDT_InnerChannel::WaitConn().

void InnerSocket::ReceiveHS HSMsgHeader *&  header,
char *&  payload
[inline]
 

Definition at line 370 of file InnerSocket.h.

References DCDT_TRC_COMM, HSMsgHeader, HSMSGHEADER_LEN, _HSMsgHeader::payload_len, sockfd, TRC_PRINT, and trecv_value.

Referenced by DCDT_InnerChannel::ReceiveHS().

void InnerSocket::ReceiveTimerOff  )  [inline]
 

Definition at line 544 of file InnerSocket.h.

References trecv_flag.

Referenced by DCDT_InnerChannel::ReceiveTimerOff().

void InnerSocket::ReceiveTimerOn  )  [inline]
 

Definition at line 538 of file InnerSocket.h.

References trecv_flag, and unblock_recv_flag.

Referenced by DCDT_InnerChannel::ReceiveTimerOn(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::Send const DCDT_Msg msg  )  [inline]
 

Definition at line 150 of file InnerSocket.h.

References DCDT_TRC_COMM, DCDT_Msg::GetHeader(), DCDT_Msg::GetPayload(), opened, DCDT_Msg::ReadPayloadLen(), sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::Send(), and DCDT_InnerChannel::StartConn().

void InnerSocket::SendHS char *  to,
HSMsgHeader header,
char *  payload
[inline]
 

Definition at line 218 of file InnerSocket.h.

References DCDT_TRC_COMM, HSMsgHeader, _HSMsgHeader::payload_len, sockfd, and TRC_PRINT.

Referenced by DCDT_InnerChannel::SendAnswer(), and DCDT_InnerChannel::SendNotify().

void InnerSocket::SendTimerOff  )  [inline]
 

Definition at line 522 of file InnerSocket.h.

References tsend_flag.

Referenced by DCDT_InnerChannel::SendTimerOff().

void InnerSocket::SendTimerOn  )  [inline]
 

Definition at line 516 of file InnerSocket.h.

References tsend_flag, and unblock_send_flag.

Referenced by DCDT_InnerChannel::SendTimerOn(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::SetConnTimer int  usec  )  [inline]
 

Definition at line 494 of file InnerSocket.h.

Referenced by DCDT_InnerChannel::SetConnTimer(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::SetLostTimer int  usec  )  [inline]
 

Definition at line 478 of file InnerSocket.h.

Referenced by DCDT_InnerChannel::SetLostTimer(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::SetReceiveTimer int  usec  )  [inline]
 

Definition at line 532 of file InnerSocket.h.

References trecv_value.

Referenced by DCDT_InnerChannel::SetReceiveTimer(), DCDT_InnerChannel::SetTimers(), and DCDT_InnerChannel::WaitConn().

void InnerSocket::SetSendTimer int  usec  )  [inline]
 

Definition at line 510 of file InnerSocket.h.

Referenced by DCDT_InnerChannel::SetSendTimer(), and DCDT_InnerChannel::SetTimers().

void InnerSocket::UnblockReceive  )  [inline]
 

Definition at line 549 of file InnerSocket.h.

References unblock_recv_flag.

Referenced by DCDT_InnerChannel::UnblockReceive().

void InnerSocket::UnblockSend  )  [inline]
 

Definition at line 527 of file InnerSocket.h.

References unblock_send_flag.

Referenced by DCDT_InnerChannel::UnblockSend().


Member Data Documentation

int InnerSocket::bound [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by Bind(), Close(), and ForcedClose().

int InnerSocket::connected [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by Close(), Connect(), and ForcedClose().

char* InnerSocket::name [protected]
 

Definition at line 88 of file InnerSocket.h.

Referenced by Bind(), Close(), and ForcedClose().

int InnerSocket::opened [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by Bind(), Close(), Connect(), ForcedClose(), Open(), and Send().

int InnerSocket::sockfd [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by Bind(), Close(), Connect(), ForcedClose(), Open(), Receive(), ReceiveHS(), Send(), and SendHS().

int InnerSocket::tconn_flag [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by ConnTimerOff(), and ConnTimerOn().

int InnerSocket::tlost_flag [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by LostTimerOff(), and LostTimerOn().

int InnerSocket::trecv_flag [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by ReceiveTimerOff(), and ReceiveTimerOn().

struct timeval tconn_value tlost_value tsend_value InnerSocket::trecv_value [protected]
 

Definition at line 87 of file InnerSocket.h.

Referenced by Receive(), ReceiveHS(), and SetReceiveTimer().

int InnerSocket::tsend_flag [protected]
 

Definition at line 85 of file InnerSocket.h.

Referenced by SendTimerOff(), and SendTimerOn().

int InnerSocket::unblock_recv_flag [protected]
 

Definition at line 86 of file InnerSocket.h.

Referenced by ReceiveTimerOn(), and UnblockReceive().

int InnerSocket::unblock_send_flag [protected]
 

Definition at line 86 of file InnerSocket.h.

Referenced by SendTimerOn(), and UnblockSend().


The documentation for this class was generated from the following file:
Generated on Sun Jun 19 10:35:51 2005 for dcdt by  doxygen 1.3.9.1