OpendTect
7.0
|
Public Member Functions | |
RequestConnection (const Authority &, bool multithreaded=true, int connectiontimeout=-1) | |
Initiates communications. More... | |
RequestConnection (Socket *) | |
~RequestConnection () | |
uiString | errMsg () const |
RefMan< RequestPacket > | getNextExternalPacket () |
int | ID () const |
bool | isMultiThreaded () |
bool | isOK () const |
is the conn usable? More... | |
RefMan< RequestPacket > | pickupPacket (od_int32 reqid, int timeout, int *errorcode=nullptr) |
PortNr_Type | port () const |
bool | sendPacket (const RequestPacket &, bool waitforfinish=false) |
BufferString | server () const |
Socket * | socket () |
bool | stillTrying () const |
if not OK, may it become? More... | |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Static Public Member Functions | |
static int | cDisconnected () |
static int | cInvalidRequest () |
static int | cTimeout () |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< RequestConnection > | connectionClosed |
CNotifier< RequestConnection, od_int32 > | packetArrived |
Private Member Functions | |
void | connCloseCB (CallBacker *) |
void | connectToHost (bool witheventloop) |
void | dataArrivedCB (CallBacker *) |
bool | doSendPacket (const RequestPacket &, bool waitforfinish) |
RefMan< RequestPacket > | getNextAlreadyRead (int) |
void | newConnectionCB (CallBacker *) |
bool | readFromSocket () |
void | requestEnded (od_int32) |
void | sendQueueCB (CallBacker *) |
void | socketThreadFunc (CallBacker *) |
bool | writeToSocket () |
Private Attributes | |
Authority * | authority_ = nullptr |
uiString | errmsg_ |
QEventLoop * | eventloop_ = nullptr |
Threads::ConditionVar * | eventlooplock_ = nullptr |
int | id_ |
Threads::ConditionVar | lock_ |
TypeSet< od_int32 > | ourrequestids_ |
bool | ownssocket_ |
ObjectSet< RequestPacket > | receivedpackets_ |
ObjectSet< PacketSendData > | sendqueue_ |
Socket * | socket_ |
Threads::Thread * | socketthread_ = nullptr |
int | timeout_ |
Friends | |
struct | PacketSendData |
class | RequestConnectionSender |
<>
Network::RequestConnection::RequestConnection | ( | const Authority & | , |
bool | multithreaded = true , |
||
int | connectiontimeout = -1 |
||
) |
Initiates communications.
Network::RequestConnection::RequestConnection | ( | Socket * | ) |
Network::RequestConnection::~RequestConnection | ( | ) |
|
inlinestatic |
|
inlinestatic |
|
private |
|
private |
|
inlinestatic |
|
private |
|
private |
|
inline |
|
private |
RefMan<RequestPacket> Network::RequestConnection::getNextExternalPacket | ( | ) |
|
inline |
|
inline |
bool Network::RequestConnection::isOK | ( | ) | const |
is the conn usable?
|
private |
RefMan<RequestPacket> Network::RequestConnection::pickupPacket | ( | od_int32 | reqid, |
int | timeout, | ||
int * | errorcode = nullptr |
||
) |
Must be called from same thread as construcor unless 'multithreaded' flag was set on constructor.
PortNr_Type Network::RequestConnection::port | ( | ) | const |
|
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.
|
private |
BufferString Network::RequestConnection::server | ( | ) | const |
|
inline |
|
private |
bool Network::RequestConnection::stillTrying | ( | ) | const |
if not OK, may it become?
|
private |
|
friend |
|
friend |
|
private |
Notifier<RequestConnection> Network::RequestConnection::connectionClosed |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
CNotifier<RequestConnection,od_int32> Network::RequestConnection::packetArrived |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024