#include <MsgTransport.h>
Collaboration diagram for bogotel::CMsgTransport:
Public Member Functions | |
CMsgTransport (CBgtRt *pBgtRt) | |
virtual | ~CMsgTransport () |
int | init () |
int | sendMsg (CMsg *pMsg) |
Static Public Member Functions | |
void | do_thread_listen (void *param) |
void | do_thread_talk (void *param) |
int | openListenerSocket (struct sockaddr_in *pAddr, int *pFd, u_short usPort) |
Private Member Functions | |
int | openTalkerSocket () |
void | runListener () |
void | runTalker () |
Private Attributes | |
boost::thread * | m_pthrdListener |
boost::thread * | m_pthrdTalker |
boost::mutex | m_mtxStartup |
boost::condition | m_condStartup |
bool | m_bListenerStarted |
bool | m_bStopTalker |
bool | m_bStopListener |
boost::mutex | m_mtxDeque |
boost::mutex | m_mtxAddedToQueue |
boost::condition | m_condEvent |
u_short | m_usMyPort |
u_short | m_usOppPort |
std::string | m_strOppIp |
CBgtRt * | m_pBgtRt |
DEQUE_STRING | m_deqMsg |
sockaddr_in | m_addrListener |
int | m_fdListener |
sockaddr_in | m_addrTalker |
int | m_fdTalker |
|
Definition at line 27 of file MsgTransport.cpp. |
|
Definition at line 38 of file MsgTransport.cpp. |
|
Definition at line 57 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CUtil::getInstanceNum(), bogotel::CProperties::getProperty(), bogotel::CUtil::log(), m_bListenerStarted, m_condStartup, m_mtxStartup, bogotel::CUtil::m_propIni, m_pthrdListener, m_strOppIp, m_usMyPort, m_usOppPort, bogotel::resultERROR, and bogotel::resultSUCCESS. |
|
Definition at line 260 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CUtil::log(), m_condEvent, m_deqMsg, m_mtxDeque, MAXBUFLEN, bogotel::resultFUNC_BAD_PARAMETER, bogotel::resultSUCCESS, and bogotel::CMsg::toString(). Referenced by bogotel::CVoiceDev::sendMsg(), and bogotel::CSignalDev::sendMsg(). |
|
Definition at line 102 of file MsgTransport.cpp. References bogotel::g_util, and bogotel::CUtil::log(). |
|
Definition at line 112 of file MsgTransport.cpp. References bogotel::g_util, and bogotel::CUtil::log(). |
|
Definition at line 205 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CUtil::log(), bogotel::resultSOCKET_ERROR, bogotel::resultSOCKET_IN_USE, and bogotel::resultSUCCESS. Referenced by runListener(). |
|
Definition at line 235 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CUtil::log(), m_addrTalker, m_fdTalker, m_strOppIp, m_usOppPort, bogotel::resultSOCKET_ERROR, and bogotel::resultSUCCESS. Referenced by runTalker(). |
|
Definition at line 170 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CBgtRt::incomingMsg(), bogotel::CMsg::init(), bogotel::CUtil::log(), m_addrListener, m_bListenerStarted, m_bStopListener, m_condStartup, m_fdListener, m_pBgtRt, m_usMyPort, MAXBUFLEN, openListenerSocket(), and bogotel::resultSUCCESS. |
|
Definition at line 122 of file MsgTransport.cpp. References bogotel::g_util, bogotel::CUtil::log(), m_bStopTalker, m_condEvent, m_deqMsg, m_fdTalker, m_mtxAddedToQueue, m_mtxDeque, openTalkerSocket(), and bogotel::resultSUCCESS. |
|
Definition at line 100 of file MsgTransport.h. Referenced by init(). |
|
Definition at line 101 of file MsgTransport.h. |
|
Definition at line 103 of file MsgTransport.h. Referenced by init(). |
|
Definition at line 104 of file MsgTransport.h. Referenced by init(), and runListener(). |
|
Definition at line 105 of file MsgTransport.h. Referenced by init(), and runListener(). |
|
Definition at line 107 of file MsgTransport.h. Referenced by runTalker(). |
|
Definition at line 108 of file MsgTransport.h. Referenced by runListener(). |
|
Definition at line 110 of file MsgTransport.h. Referenced by runTalker(), and sendMsg(). |
|
Definition at line 112 of file MsgTransport.h. Referenced by runTalker(). |
|
Definition at line 113 of file MsgTransport.h. Referenced by runTalker(), and sendMsg(). |
|
Definition at line 115 of file MsgTransport.h. Referenced by init(), and runListener(). |
|
Definition at line 116 of file MsgTransport.h. Referenced by init(), and openTalkerSocket(). |
|
Definition at line 117 of file MsgTransport.h. Referenced by init(), and openTalkerSocket(). |
|
Definition at line 118 of file MsgTransport.h. Referenced by runListener(). |
|
Definition at line 119 of file MsgTransport.h. Referenced by runTalker(), and sendMsg(). |
|
Definition at line 121 of file MsgTransport.h. Referenced by runListener(). |
|
Definition at line 122 of file MsgTransport.h. Referenced by runListener(). |
|
Definition at line 124 of file MsgTransport.h. Referenced by openTalkerSocket(). |
|
Definition at line 125 of file MsgTransport.h. Referenced by openTalkerSocket(), and runTalker(). |