![]() |
OpendTect
6.6
|
Public Member Functions | |
| Server (bool islocal) | |
| ~Server () | |
| Authority | authority () const |
| void | close () |
| const char * | errorMsg () const |
| Socket * | getSocket (int id) |
| const Socket * | getSocket (int id) const |
| bool | hasPendingConnections () const |
| bool | isListening () const |
| bool | isLocal () const |
| bool | listen (const char *servernm, uiRetVal &) |
| bool | listen (SpecAddr=Any, PortNr_Type port=0) |
| If Any, server will listen to all network interfaces. More... | |
| QTcpSocket * | nextPendingConnection () |
| Use when you want to access Qt object directly. More... | |
| QLocalSocket * | nextPendingLocalConnection () |
| PortNr_Type | port () const |
| void | read (int id, BufferString &) const |
| void | read (int id, IOPar &) const |
| bool | waitForNewConnection (int msec) |
| int | write (int id, const char *) |
| Writes to next pending socket. More... | |
| int | write (int id, const IOPar &) |
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 |
Static Public Member Functions | |
| static const char * | sKeyHostName () |
| static const char * | sKeyKillword () |
| static const char * | sKeyLocal () |
| static const char * | sKeyNoListen () |
| static const char * | sKeyPort () |
| static const char * | sKeyTimeout () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Public Attributes | |
| CNotifier< Server, int > | newConnection |
| CNotifier< Server, int > | readyRead |
Protected Member Functions | |
| void | disconnectCB (CallBacker *) |
| void | notifyNewConnection () |
| void | readyReadCB (CallBacker *) |
Protected Attributes | |
| QTcpServerComm * | comm_ |
| BufferString | errmsg_ |
| TypeSet< int > | ids_ |
| QLocalServer * | qlocalserver_ = nullptr |
| QTcpServer * | qtcpserver_ = nullptr |
| ObjectSet< Socket > | sockets2bdeleted_ |
| ObjectSet< Socket > | sockets_ |
Friends | |
| class | QTcpServerComm |
<>
| Network::Server::Server | ( | bool | islocal | ) |
| Network::Server::~Server | ( | ) |
| Authority Network::Server::authority | ( | ) | const |
| void Network::Server::close | ( | ) |
|
protected |
| const char* Network::Server::errorMsg | ( | ) | const |
| Socket* Network::Server::getSocket | ( | int | id | ) |
| const Socket* Network::Server::getSocket | ( | int | id | ) | const |
| bool Network::Server::hasPendingConnections | ( | ) | const |
| bool Network::Server::isListening | ( | ) | const |
|
inline |
| bool Network::Server::listen | ( | const char * | servernm, |
| uiRetVal & | |||
| ) |
If Any, server will listen to all network interfaces.
| QTcpSocket* Network::Server::nextPendingConnection | ( | ) |
Use when you want to access Qt object directly.
| QLocalSocket* Network::Server::nextPendingLocalConnection | ( | ) |
|
protected |
| PortNr_Type Network::Server::port | ( | ) | const |
| void Network::Server::read | ( | int | id, |
| BufferString & | |||
| ) | const |
| void Network::Server::read | ( | int | id, |
| IOPar & | |||
| ) | const |
|
protected |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| bool Network::Server::waitForNewConnection | ( | int | msec | ) |
Useful when no event loop available If msec is -1, this function will not time out
| int Network::Server::write | ( | int | id, |
| const char * | |||
| ) |
Writes to next pending socket.
| int Network::Server::write | ( | int | id, |
| const IOPar & | |||
| ) |
|
friend |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022