![]() |
OpendTect-6_4
6.4
|
Public Member Functions | |
| RequestConnection (const char *servername, unsigned short serverport, bool multithreaded=true, int connectiontimeout=-1) | |
| Initiates communications. More... | |
| RequestConnection (Socket *) | |
| ~RequestConnection () | |
| bool | isOK () const |
| const char * | server () const |
| unsigned short | port () const |
| int | ID () const |
| bool | sendPacket (const RequestPacket &, bool waitforfinish=false) |
| RequestPacket * | pickupPacket (od_int32 reqid, int timeout, int *errorcode=0) |
| RequestPacket * | getNextExternalPacket () |
| bool | isMultiThreaded () |
| Socket * | socket () |
| uiString | errMsg () const |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
| bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
| void | detachCB (NotifierAccess &, const CallBack &) |
| void | detachCB (NotifierAccess *notif, const CallBack &cb) |
| bool | isNotifierAttached (NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
| static int | cInvalidRequest () |
| static int | cTimeout () |
| static int | cDisconnected () |
Public Attributes | |
| CNotifier< RequestConnection, od_int32 > | packetArrived |
| Notifier< RequestConnection > | connectionClosed |
Private Types | |
| enum | ThreadReadStatus { None, TryRead, ReadOK, ReadFail } |
Private Member Functions | |
| mODTextTranslationClass (RequestConnection) | |
| void | socketThreadFunc (CallBacker *) |
| void | connectToHost () |
| void | flush () |
| void | connCloseCB (CallBacker *) |
| void | newConnectionCB (CallBacker *) |
| void | dataArrivedCB (CallBacker *) |
| bool | doSendPacket (const RequestPacket &, bool waitforfinish) |
| bool | readFromSocket () |
| bool | writeToSocket () |
| Network::RequestPacket * | readConnection (int) |
| Network::RequestPacket * | getNextAlreadyRead (int) |
| void | requestEnded (od_int32) |
Private Attributes | |
| uiString | errmsg_ |
| ThreadReadStatus | threadreadstatus_ |
| TypeSet< od_int32 > | ourrequestids_ |
| ObjectSet< RequestPacket > | receivedpackets_ |
| Threads::ConditionVar | lock_ |
| Socket * | socket_ |
| int | timeout_ |
| bool | ownssocket_ |
| const RequestPacket * | packettosend_ |
| bool | sendwithwait_ |
| bool | sendresult_ |
| bool | sendingfinished_ |
| bool | triggerread_ |
| int | id_ |
| BufferString | servername_ |
| unsigned short | serverport_ |
| Threads::Thread * | socketthread_ |
| bool | stopflag_ |
| bool | readfirst_ |
Additional Inherited Members | |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () |
| Call from the destructor of your inherited object. More... | |
|
private |
| Network::RequestConnection::RequestConnection | ( | const char * | servername, |
| unsigned short | serverport, | ||
| bool | multithreaded = true, |
||
| int | connectiontimeout = -1 |
||
| ) |
Initiates communications.
| Network::RequestConnection::RequestConnection | ( | Socket * | ) |
Socket does NOT become mine. Socket should be connected to whomever is my counterpart.
| Network::RequestConnection::~RequestConnection | ( | ) |
|
inlinestatic |
|
inlinestatic |
|
private |
|
private |
|
inlinestatic |
|
private |
|
private |
|
inline |
|
private |
|
private |
| RequestPacket* Network::RequestConnection::getNextExternalPacket | ( | ) |
|
inline |
|
inline |
| bool Network::RequestConnection::isOK | ( | ) | const |
|
private |
|
private |
| RequestPacket* Network::RequestConnection::pickupPacket | ( | od_int32 | reqid, |
| int | timeout, | ||
| int * | errorcode = 0 |
||
| ) |
Must be called from same thread as construcor unless 'multithreaded' flag was set on constructor.
|
inline |
|
private |
|
private |
|
private |
| bool Network::RequestConnection::sendPacket | ( | const RequestPacket & | , |
| bool | waitforfinish = false |
||
| ) |
Must be called from same thread as construcor unless 'multithreaded' flag was set on constructor.
|
inline |
|
inline |
|
private |
|
private |
| Notifier<RequestConnection> Network::RequestConnection::connectionClosed |
|
private |
|
private |
|
private |
|
private |
| CNotifier<RequestConnection,od_int32> Network::RequestConnection::packetArrived |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019