OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Network::Authority Class Reference

Public Types

enum  ConnType { FQDN , HostName , IPv4 }
 

Public Member Functions

 Authority (const Authority &)
 
 Authority (const BufferString &servernm)
 
 Authority (const char *host=nullptr, PortNr_Type=0, bool resolveipv6=false)
 
 ~Authority ()
 
bool addressIsValid () const
 
void addTo (OS::MachineCommand &, const char *ky=nullptr) const
 
void fromString (const char *, bool resolveipv6=false)
 
BufferString getConnHost (ConnType) const
 
BufferString getHost () const
 
PortNr_Type getPort () const
 
BufferString getServerName () const
 
BufferString getUserInfo () const
 
bool isAddressBased () const
 
bool isLocal () const
 
bool isOK () const
 
bool isUsable () const
 
AuthoritylocalFromString (const char *)
 
Authorityoperator= (const Authority &)
 
bool operator== (const Authority &) const
 
bool portIsFree (uiString *errmsg=nullptr) const
 
SpecAddr serverAddress () const
 
void setFreePort (uiRetVal &)
 
AuthoritysetFrom (const CommandLineParser &, const char *defservnm=nullptr, const char *defhostnm=nullptr, PortNr_Type defport=0)
 
AuthoritysetHost (const char *, bool resolveipv6=false)
 
AuthoritysetPort (PortNr_Type)
 
AuthoritysetUserInfo (const char *)
 
BufferString toString () const
 

Static Public Member Functions

static BufferString getAppServerName (const char *nm=nullptr)
 

Private Member Functions

bool hasAssignedPort () const
 
void setHostAddress (const char *, bool resolveipv6=false)
 

Private Attributes

bool hostisaddress_
 
PortNr_Type port_
 
QString & qhost_
 
QHostAddress & qhostaddr_
 
BufferString servernm_
 
BufferString userinfo_
 

Friends

class Socket
 

Detailed Description

<>

Member Enumeration Documentation

◆ ConnType

Enumerator
FQDN 
HostName 
IPv4 

Constructor & Destructor Documentation

◆ Authority() [1/3]

Network::Authority::Authority ( const BufferString servernm)
explicit

◆ Authority() [2/3]

Network::Authority::Authority ( const char *  host = nullptr,
PortNr_Type  = 0,
bool  resolveipv6 = false 
)

◆ Authority() [3/3]

Network::Authority::Authority ( const Authority )

◆ ~Authority()

Network::Authority::~Authority ( )

Member Function Documentation

◆ addressIsValid()

bool Network::Authority::addressIsValid ( ) const

◆ addTo()

void Network::Authority::addTo ( OS::MachineCommand ,
const char *  ky = nullptr 
) const

◆ fromString()

void Network::Authority::fromString ( const char *  ,
bool  resolveipv6 = false 
)

◆ getAppServerName()

static BufferString Network::Authority::getAppServerName ( const char *  nm = nullptr)
static

◆ getConnHost()

BufferString Network::Authority::getConnHost ( ConnType  ) const

◆ getHost()

BufferString Network::Authority::getHost ( ) const

◆ getPort()

PortNr_Type Network::Authority::getPort ( ) const
inline

◆ getServerName()

BufferString Network::Authority::getServerName ( ) const

◆ getUserInfo()

BufferString Network::Authority::getUserInfo ( ) const
inline

◆ hasAssignedPort()

bool Network::Authority::hasAssignedPort ( ) const
inlineprivate

◆ isAddressBased()

bool Network::Authority::isAddressBased ( ) const
inline

◆ isLocal()

bool Network::Authority::isLocal ( ) const
inline

◆ isOK()

bool Network::Authority::isOK ( ) const

◆ isUsable()

bool Network::Authority::isUsable ( ) const

◆ localFromString()

Authority& Network::Authority::localFromString ( const char *  )

◆ operator=()

Authority& Network::Authority::operator= ( const Authority )

◆ operator==()

bool Network::Authority::operator== ( const Authority ) const

◆ portIsFree()

bool Network::Authority::portIsFree ( uiString errmsg = nullptr) const

◆ serverAddress()

SpecAddr Network::Authority::serverAddress ( ) const

◆ setFreePort()

void Network::Authority::setFreePort ( uiRetVal )

◆ setFrom()

Authority& Network::Authority::setFrom ( const CommandLineParser ,
const char *  defservnm = nullptr,
const char *  defhostnm = nullptr,
PortNr_Type  defport = 0 
)

◆ setHost()

Authority& Network::Authority::setHost ( const char *  ,
bool  resolveipv6 = false 
)

◆ setHostAddress()

void Network::Authority::setHostAddress ( const char *  ,
bool  resolveipv6 = false 
)
private

◆ setPort()

Authority& Network::Authority::setPort ( PortNr_Type  )

◆ setUserInfo()

Authority& Network::Authority::setUserInfo ( const char *  )

◆ toString()

BufferString Network::Authority::toString ( ) const

Friends And Related Function Documentation

◆ Socket

friend class Socket
friend

Member Data Documentation

◆ hostisaddress_

bool Network::Authority::hostisaddress_
private

◆ port_

PortNr_Type Network::Authority::port_
private

◆ qhost_

QString& Network::Authority::qhost_
private

◆ qhostaddr_

QHostAddress& Network::Authority::qhostaddr_
private

◆ servernm_

BufferString Network::Authority::servernm_
private

◆ userinfo_

BufferString Network::Authority::userinfo_
private

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