OpendTect  6.6
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Network::RequestServer Class Reference
Inheritance diagram for Network::RequestServer:
[legend]

Public Member Functions

 RequestServer (const Authority &)
 
 RequestServer (const char *servernm)
 
 RequestServer (PortNr_Type, SpecAddr=Any)
 
 ~RequestServer ()
 
uiString errMsg () const
 Becomes yours. More...
 
Authority getAuthority () const
 
bool isOK () const
 
RequestConnectionpickupNewConnection ()
 
Serverserver ()
 
- 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
 

Public Attributes

Notifier< RequestServernewConnection
 

Private Member Functions

uiString LocalErrMsg () const
 
void newConnectionCB (CallBacker *)
 
uiString TCPErrMsg () const
 

Private Attributes

uiString errmsg_
 
Threads::Lock lock_
 
ObjectSet< RequestConnectionpendingconns_
 
Serverserver_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Sets up a listening service at the port and creates Network::RequestConnections when there is a connection.

<>

Constructor & Destructor Documentation

◆ RequestServer() [1/3]

Network::RequestServer::RequestServer ( const char *  servernm)

◆ RequestServer() [2/3]

Network::RequestServer::RequestServer ( PortNr_Type  ,
SpecAddr  = Any 
)

◆ RequestServer() [3/3]

Network::RequestServer::RequestServer ( const Authority )

◆ ~RequestServer()

Network::RequestServer::~RequestServer ( )

Member Function Documentation

◆ errMsg()

uiString Network::RequestServer::errMsg ( ) const
inline

Becomes yours.

◆ getAuthority()

Authority Network::RequestServer::getAuthority ( ) const

◆ isOK()

bool Network::RequestServer::isOK ( ) const

◆ LocalErrMsg()

uiString Network::RequestServer::LocalErrMsg ( ) const
private

◆ newConnectionCB()

void Network::RequestServer::newConnectionCB ( CallBacker )
private

◆ pickupNewConnection()

RequestConnection* Network::RequestServer::pickupNewConnection ( )

◆ server()

Server* Network::RequestServer::server ( )
inline

◆ TCPErrMsg()

uiString Network::RequestServer::TCPErrMsg ( ) const
private

Member Data Documentation

◆ errmsg_

uiString Network::RequestServer::errmsg_
private

◆ lock_

Threads::Lock Network::RequestServer::lock_
private

◆ newConnection

Notifier<RequestServer> Network::RequestServer::newConnection

◆ pendingconns_

ObjectSet<RequestConnection> Network::RequestServer::pendingconns_
private

◆ server_

Server* Network::RequestServer::server_
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022