![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include "virtualCircuit.h"
Public Types | |
enum | iiu_conn_state { iiucs_connecting, iiucs_connected, iiucs_clean_shutdown, iiucs_disconnected, iiucs_abort_shutdown } |
Public Member Functions | |
tcpiiu (cac &cac, epicsMutex &mutualExclusion, epicsMutex &callbackControl, cacContextNotify &, double connectionTimeout, epicsTimerQueue &timerQueue, const osiSockAddr &addrIn, comBufMemoryManager &, unsigned minorVersion, ipAddrToAsciiEngine &engineIn, const cacChannel::priLev &priorityIn, SearchDestTCP *pSearchDestIn=NULL) | |
~tcpiiu () | |
void | start (epicsGuard< epicsMutex > &) |
void | responsiveCircuitNotify (epicsGuard< epicsMutex > &cbGuard, epicsGuard< epicsMutex > &guard) |
void | sendTimeoutNotify (callbackManager &cbMgr, epicsGuard< epicsMutex > &guard) |
void | receiveTimeoutNotify (callbackManager &, epicsGuard< epicsMutex > &) |
void | beaconAnomalyNotify (epicsGuard< epicsMutex > &) |
void | beaconArrivalNotify (epicsGuard< epicsMutex > &) |
void | probeResponseNotify (epicsGuard< epicsMutex > &) |
void | flushRequest (epicsGuard< epicsMutex > &) |
unsigned | requestMessageBytesPending (epicsGuard< epicsMutex > &mutualExclusionGuard) |
void | flush (epicsGuard< epicsMutex > &mutualExclusionGuard) |
void | show (unsigned level) const |
bool | setEchoRequestPending (epicsGuard< epicsMutex > &) |
void | requestRecvProcessPostponedFlush (epicsGuard< epicsMutex > &) |
void | clearChannelRequest (epicsGuard< epicsMutex > &, ca_uint32_t sid, ca_uint32_t cid) |
bool | ca_v41_ok (epicsGuard< epicsMutex > &) const |
bool | ca_v42_ok (epicsGuard< epicsMutex > &) const |
bool | ca_v44_ok (epicsGuard< epicsMutex > &) const |
bool | ca_v49_ok (epicsGuard< epicsMutex > &) const |
unsigned | getHostName (epicsGuard< epicsMutex > &, char *pBuf, unsigned bufLength) const throw () |
bool | alive (epicsGuard< epicsMutex > &) const |
bool | connecting (epicsGuard< epicsMutex > &) const |
bool | receiveThreadIsBusy (epicsGuard< epicsMutex > &) |
osiSockAddr | getNetworkAddress (epicsGuard< epicsMutex > &) const |
int | printFormated (epicsGuard< epicsMutex > &cbGuard, const char *pformat,...) |
unsigned | channelCount (epicsGuard< epicsMutex > &) |
void | disconnectAllChannels (epicsGuard< epicsMutex > &cbGuard, epicsGuard< epicsMutex > &guard, class udpiiu &) |
void | unlinkAllChannels (epicsGuard< epicsMutex > &cbGuard, epicsGuard< epicsMutex > &guard) |
void | installChannel (epicsGuard< epicsMutex > &, nciu &chan, unsigned sidIn, ca_uint16_t typeIn, arrayElementCount countIn) |
void | uninstallChan (epicsGuard< epicsMutex > &guard, nciu &chan) |
bool | connectNotify (epicsGuard< epicsMutex > &, nciu &chan) |
void | searchRespNotify (const epicsTime &, const caHdrLargeArray &) |
void | versionRespNotify (const caHdrLargeArray &) |
void * | operator new (size_t size, tsFreeList< class tcpiiu, 32, epicsMutexNOOP > &) |
bool | processIncoming (const epicsTime ¤tTime, callbackManager &) |
unsigned | sendBytes (const void *pBuf, unsigned nBytesInBuf, const epicsTime ¤tTime) |
void | recvBytes (void *pBuf, unsigned nBytesInBuf, statusWireIO &) |
const char * | pHostName (epicsGuard< epicsMutex > &) const throw () |
double | receiveWatchdogDelay (epicsGuard< epicsMutex > &) const |
void | unresponsiveCircuitNotify (epicsGuard< epicsMutex > &cbGuard, epicsGuard< epicsMutex > &guard) |
void | initiateCleanShutdown (epicsGuard< epicsMutex > &) |
void | initiateAbortShutdown (epicsGuard< epicsMutex > &) |
void | disconnectNotify (epicsGuard< epicsMutex > &) |
bool | bytesArePendingInOS () const |
void | decrementBlockingForFlushCount (epicsGuard< epicsMutex > &guard) |
bool | isNameService () const |
void | echoRequest (epicsGuard< epicsMutex > &) |
void | versionMessage (epicsGuard< epicsMutex > &, const cacChannel::priLev &priority) |
void | disableFlowControlRequest (epicsGuard< epicsMutex > &) |
void | enableFlowControlRequest (epicsGuard< epicsMutex > &) |
void | hostNameSetRequest (epicsGuard< epicsMutex > &) |
void | userNameSetRequest (epicsGuard< epicsMutex > &) |
void | createChannelRequest (nciu &, epicsGuard< epicsMutex > &) |
void | writeRequest (epicsGuard< epicsMutex > &, nciu &, unsigned type, arrayElementCount nElem, const void *pValue) |
void | writeNotifyRequest (epicsGuard< epicsMutex > &, nciu &, netWriteNotifyIO &, unsigned type, arrayElementCount nElem, const void *pValue) |
void | readNotifyRequest (epicsGuard< epicsMutex > &, nciu &, netReadNotifyIO &, unsigned type, arrayElementCount nElem) |
void | subscriptionRequest (epicsGuard< epicsMutex > &, nciu &, netSubscription &subscr) |
void | subscriptionUpdateRequest (epicsGuard< epicsMutex > &, nciu &chan, netSubscription &subscr) |
void | subscriptionCancelRequest (epicsGuard< epicsMutex > &, nciu &chan, netSubscription &subscr) |
void | flushIfRecvProcessRequested (epicsGuard< epicsMutex > &) |
bool | sendThreadFlush (epicsGuard< epicsMutex > &) |
void | uninstallChanDueToSuccessfulSearchResponse (epicsGuard< epicsMutex > &, nciu &, const class epicsTime &) |
bool | searchMsg (epicsGuard< epicsMutex > &, ca_uint32_t id, const char *pName, unsigned nameLength) |
tcpiiu (const tcpiiu &) | |
tcpiiu & | operator= (const tcpiiu &) |
void | operator delete (void *) |
![]() | |
virtual | ~netiiu ()=0 |
![]() | |
tsDLNode () | |
tsDLNode (const tsDLNode< tcpiiu > &) | |
const tsDLNode< tcpiiu > & | operator= (const tsDLNode< tcpiiu > &) |
![]() | |
tsSLNode () | |
tsSLNode< tcpiiu > & | operator= (const tsSLNode< tcpiiu > &) |
![]() | |
caServerID (const struct sockaddr_in &addrIn, unsigned priority) | |
bool | operator== (const caServerID &) const |
resTableIndex | hash () const |
osiSockAddr | address () const |
unsigned | priority () const |
Friends | |
class | tcpRecvThread |
class | tcpSendThread |
void | SearchDestTCP::searchRequest (epicsGuard< epicsMutex > &guard, const char *pbuf, size_t len) |
Definition at line 111 of file virtualCircuit.h.
Enumerator | |
---|---|
iiucs_connecting | |
iiucs_connected | |
iiucs_clean_shutdown | |
iiucs_disconnected | |
iiucs_abort_shutdown |
Definition at line 233 of file virtualCircuit.h.
tcpiiu::tcpiiu | ( | cac & | cac, |
epicsMutex & | mutualExclusion, | ||
epicsMutex & | callbackControl, | ||
cacContextNotify & | ctxNotifyIn, | ||
double | connectionTimeout, | ||
epicsTimerQueue & | timerQueue, | ||
const osiSockAddr & | addrIn, | ||
comBufMemoryManager & | comBufMemMgrIn, | ||
unsigned | minorVersion, | ||
ipAddrToAsciiEngine & | engineIn, | ||
const cacChannel::priLev & | priorityIn, | ||
SearchDestTCP * | pSearchDestIn = NULL |
||
) |
Definition at line 665 of file tcpiiu.cpp.
tcpiiu::~tcpiiu | ( | ) |
Definition at line 1014 of file tcpiiu.cpp.
tcpiiu::tcpiiu | ( | const tcpiiu & | ) |
|
inline |
Definition at line 371 of file virtualCircuit.h.
|
inline |
Definition at line 391 of file virtualCircuit.h.
|
inline |
Definition at line 398 of file virtualCircuit.h.
bool tcpiiu::bytesArePendingInOS | ( | ) | const |
Definition at line 2045 of file tcpiiu.cpp.
|
inlinevirtual |
|
virtual |
Implements netiiu.
Definition at line 1777 of file tcpiiu.cpp.
|
inline |
Definition at line 359 of file virtualCircuit.h.
|
inline |
Definition at line 365 of file virtualCircuit.h.
unsigned tcpiiu::channelCount | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 2113 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1536 of file tcpiiu.cpp.
|
inline |
Definition at line 378 of file virtualCircuit.h.
bool tcpiiu::connectNotify | ( | epicsGuard< epicsMutex > & | guard, |
nciu & | chan | ||
) |
Definition at line 1958 of file tcpiiu.cpp.
void tcpiiu::createChannelRequest | ( | nciu & | chan, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 1487 of file tcpiiu.cpp.
void tcpiiu::decrementBlockingForFlushCount | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1758 of file tcpiiu.cpp.
void tcpiiu::disableFlowControlRequest | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1348 of file tcpiiu.cpp.
void tcpiiu::disconnectAllChannels | ( | epicsGuard< epicsMutex > & | cbGuard, |
epicsGuard< epicsMutex > & | guard, | ||
class udpiiu & | discIIU | ||
) |
Definition at line 1806 of file tcpiiu.cpp.
void tcpiiu::disconnectNotify | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 851 of file tcpiiu.cpp.
void tcpiiu::echoRequest | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1400 of file tcpiiu.cpp.
void tcpiiu::enableFlowControlRequest | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1364 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1709 of file tcpiiu.cpp.
void tcpiiu::flushIfRecvProcessRequested | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1137 of file tcpiiu.cpp.
|
virtual |
|
virtual |
Implements netiiu.
Definition at line 1791 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1769 of file tcpiiu.cpp.
void tcpiiu::hostNameSetRequest | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1291 of file tcpiiu.cpp.
void tcpiiu::initiateAbortShutdown | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 942 of file tcpiiu.cpp.
void tcpiiu::initiateCleanShutdown | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 826 of file tcpiiu.cpp.
void tcpiiu::installChannel | ( | epicsGuard< epicsMutex > & | guard, |
nciu & | chan, | ||
unsigned | sidIn, | ||
ca_uint16_t | typeIn, | ||
arrayElementCount | countIn | ||
) |
Definition at line 1942 of file tcpiiu.cpp.
|
inline |
Definition at line 411 of file virtualCircuit.h.
void tcpiiu::operator delete | ( | void * | ) |
Definition at line 2101 of file tcpiiu.cpp.
|
inline |
Definition at line 339 of file virtualCircuit.h.
|
virtual |
Implements netiiu.
Definition at line 1799 of file tcpiiu.cpp.
int tcpiiu::printFormated | ( | epicsGuard< epicsMutex > & | cbGuard, |
const char * | pformat, | ||
... | |||
) |
Definition at line 2020 of file tcpiiu.cpp.
|
inline |
Definition at line 405 of file virtualCircuit.h.
bool tcpiiu::processIncoming | ( | const epicsTime & | currentTime, |
callbackManager & | mgr | ||
) |
Definition at line 1146 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1455 of file tcpiiu.cpp.
|
inline |
Definition at line 384 of file virtualCircuit.h.
void tcpiiu::receiveTimeoutNotify | ( | callbackManager & | mgr, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 889 of file tcpiiu.cpp.
|
virtual |
|
virtual |
Implements wireRecvAdapter.
Definition at line 299 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1745 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1784 of file tcpiiu.cpp.
void tcpiiu::responsiveCircuitNotify | ( | epicsGuard< epicsMutex > & | cbGuard, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 860 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 2127 of file tcpiiu.cpp.
void tcpiiu::searchRespNotify | ( | const epicsTime & | currentTime, |
const caHdrLargeArray & | msg | ||
) |
Definition at line 2193 of file tcpiiu.cpp.
unsigned tcpiiu::sendBytes | ( | const void * | pBuf, |
unsigned | nBytesInBuf, | ||
const epicsTime & | currentTime | ||
) |
Definition at line 231 of file tcpiiu.cpp.
bool tcpiiu::sendThreadFlush | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1665 of file tcpiiu.cpp.
void tcpiiu::sendTimeoutNotify | ( | callbackManager & | cbMgr, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 878 of file tcpiiu.cpp.
bool tcpiiu::setEchoRequestPending | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1121 of file tcpiiu.cpp.
void tcpiiu::show | ( | unsigned | level | ) | const |
Definition at line 1043 of file tcpiiu.cpp.
void tcpiiu::start | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 819 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1645 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1557 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1609 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1982 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 2119 of file tcpiiu.cpp.
void tcpiiu::unlinkAllChannels | ( | epicsGuard< epicsMutex > & | cbGuard, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 1869 of file tcpiiu.cpp.
void tcpiiu::unresponsiveCircuitNotify | ( | epicsGuard< epicsMutex > & | cbGuard, |
epicsGuard< epicsMutex > & | guard | ||
) |
Definition at line 898 of file tcpiiu.cpp.
void tcpiiu::userNameSetRequest | ( | epicsGuard< epicsMutex > & | guard | ) |
Definition at line 1321 of file tcpiiu.cpp.
void tcpiiu::versionMessage | ( | epicsGuard< epicsMutex > & | guard, |
const cacChannel::priLev & | priority | ||
) |
Definition at line 1380 of file tcpiiu.cpp.
void tcpiiu::versionRespNotify | ( | const caHdrLargeArray & | msg | ) |
Definition at line 2188 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1436 of file tcpiiu.cpp.
|
virtual |
Implements netiiu.
Definition at line 1421 of file tcpiiu.cpp.
|
friend |
|
friend |
Definition at line 331 of file virtualCircuit.h.
|
friend |
Definition at line 332 of file virtualCircuit.h.
bool tcpiiu::_receiveThreadIsBusy |
Definition at line 248 of file virtualCircuit.h.
unsigned tcpiiu::blockingForFlush |
Definition at line 244 of file virtualCircuit.h.
bool tcpiiu::busyStateDetected |
Definition at line 249 of file virtualCircuit.h.
cac& tcpiiu::cacRef |
Definition at line 227 of file virtualCircuit.h.
epicsMutex& tcpiiu::cbMutex |
Definition at line 231 of file virtualCircuit.h.
unsigned tcpiiu::channelCountTot |
Definition at line 247 of file virtualCircuit.h.
comBufMemoryManager& tcpiiu::comBufMemMgr |
Definition at line 226 of file virtualCircuit.h.
Definition at line 220 of file virtualCircuit.h.
unsigned tcpiiu::contigRecvMsgCount |
Definition at line 243 of file virtualCircuit.h.
Definition at line 216 of file virtualCircuit.h.
Definition at line 217 of file virtualCircuit.h.
arrayElementCount tcpiiu::curDataBytes |
Definition at line 225 of file virtualCircuit.h.
arrayElementCount tcpiiu::curDataMax |
Definition at line 224 of file virtualCircuit.h.
caHdrLargeArray tcpiiu::curMsg |
Definition at line 223 of file virtualCircuit.h.
bool tcpiiu::discardingPendingData |
Definition at line 256 of file virtualCircuit.h.
bool tcpiiu::earlyFlush |
Definition at line 254 of file virtualCircuit.h.
bool tcpiiu::echoRequestPending |
Definition at line 251 of file virtualCircuit.h.
bool tcpiiu::flowControlActive |
Definition at line 250 of file virtualCircuit.h.
epicsEvent tcpiiu::flushBlockEvent |
Definition at line 241 of file virtualCircuit.h.
unsigned tcpiiu::minorProtocolVersion |
Definition at line 232 of file virtualCircuit.h.
bool tcpiiu::msgHeaderAvailable |
Definition at line 253 of file virtualCircuit.h.
epicsMutex& tcpiiu::mutex |
Definition at line 230 of file virtualCircuit.h.
bool tcpiiu::oldMsgHeaderAvailable |
Definition at line 252 of file virtualCircuit.h.
char* tcpiiu::pCurData |
Definition at line 228 of file virtualCircuit.h.
SearchDestTCP* tcpiiu::pSearchDest |
Definition at line 229 of file virtualCircuit.h.
tcpRecvWatchdog tcpiiu::recvDog |
Definition at line 210 of file virtualCircuit.h.
bool tcpiiu::recvProcessPostponedFlush |
Definition at line 255 of file virtualCircuit.h.
comQueRecv tcpiiu::recvQue |
Definition at line 213 of file virtualCircuit.h.
epicsPlacementDeleteOperator (( void *, tsFreeList < class tcpiiu, 32, epicsMutexNOOP > & )) private tcpRecvThrea tcpiiu::recvThread) |
Definition at line 203 of file virtualCircuit.h.
tcpSendWatchdog tcpiiu::sendDog |
Definition at line 211 of file virtualCircuit.h.
comQueSend tcpiiu::sendQue |
Definition at line 212 of file virtualCircuit.h.
tcpSendThread tcpiiu::sendThread |
Definition at line 209 of file virtualCircuit.h.
epicsEvent tcpiiu::sendThreadFlushEvent |
Definition at line 240 of file virtualCircuit.h.
SOCKET tcpiiu::sock |
Definition at line 242 of file virtualCircuit.h.
bool tcpiiu::socketHasBeenClosed |
Definition at line 257 of file virtualCircuit.h.
unsigned tcpiiu::socketLibrarySendBufferSize |
Definition at line 245 of file virtualCircuit.h.
enum tcpiiu::iiu_conn_state tcpiiu::state |
Definition at line 219 of file virtualCircuit.h.
Definition at line 222 of file virtualCircuit.h.
unsigned tcpiiu::unacknowledgedSendBytes |
Definition at line 246 of file virtualCircuit.h.
Definition at line 221 of file virtualCircuit.h.
bool tcpiiu::unresponsiveCircuit |
Definition at line 258 of file virtualCircuit.h.
Definition at line 218 of file virtualCircuit.h.