 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "networkmod.h"
25 namespace OS {
class MachineCommand; }
37 int maxportstotry=100);
69 bool isLocal()
const {
return !servernm_.isEmpty(); }
90 const char* defservnm=
nullptr,
91 const char* defhostnm=
nullptr,
95 const char* ky=
nullptr)
const;
BufferString servernm_
Definition: networkcommon.h:109
bool addressIsValid() const
BufferString getHost() const
Authority(const char *host=nullptr, PortNr_Type=0, bool resolveipv6=false)
#define mGlobal(module)
Definition: commondefs.h:180
PortNr_Type getUsablePort(uiRetVal &, PortNr_Type firstport=0, int maxportstotry=100)
Returns 0 if none found.
Authority(const Authority &)
mQtclass(QString) &qhost_
void fromString(const char *, bool resolveipv6=false)
PortNr_Type getNextCandidatePort()
Authority & setPort(PortNr_Type)
Authority & setUserInfo(const char *)
Authority & setFrom(const CommandLineParser &, const char *defservnm=nullptr, const char *defhostnm=nullptr, PortNr_Type defport=0)
@ IPv4
Definition: networkcommon.h:33
#define mExpClass(module)
Definition: commondefs.h:177
mODTextTranslationClass(Authority)
Definition: jobcommunic.h:22
Definition: networkcommon.h:56
Definition: uistringset.h:105
@ LocalIPv6
Definition: networkcommon.h:33
mFDQtclass(QString) mFDQtclass(QHostAddress) class CommandLineParser
Definition: commandlineparser.h:53
BufferString getServerName() const
bool isLocal() const
Definition: networkcommon.h:69
@ LocalIPv4
Definition: networkcommon.h:33
void setFreePort(uiRetVal &)
Authority & localFromString(const char *)
void setHostAddress(const char *, bool resolveipv6=false)
BufferString userinfo_
Definition: networkcommon.h:102
BufferString toString() const
Authority(const BufferString &servernm)
SpecAddr
Definition: networkcommon.h:33
PortNr_Type port_
Definition: networkcommon.h:103
Definition: od_stream.h:23
bool hasAssignedPort() const
Definition: networkcommon.h:111
BufferString getUserInfo() const
Definition: networkcommon.h:74
@ Any
Definition: networkcommon.h:33
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
@ None
Definition: networkcommon.h:33
mQtclass(QHostAddress) &qhostaddr_
bool hostisaddress_
Definition: networkcommon.h:105
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
static BufferString getAppServerName(const char *nm=nullptr)
bool portIsFree(uiString *errmsg=nullptr) const
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:94
bool isPortFree(PortNr_Type port, uiString *errmsg=nullptr)
void addTo(OS::MachineCommand &, const char *ky=nullptr) const
Authority & setHost(const char *, bool resolveipv6=false)
@ Broadcast
Definition: networkcommon.h:33
bool operator==(const Authority &) const
Authority & operator=(const Authority &)
@ IPv6
Definition: networkcommon.h:33
PortNr_Type getPort() const
Definition: networkcommon.h:76
unsigned short PortNr_Type
Definition: commontypes.h:37
SpecAddr serverAddress() const
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021