OpendTect  6.6
Classes | Typedefs | Enumerations | Functions
Network Namespace Reference

Classes

class  Authority
 
class  PacketFiller
 
class  PacketInterpreter
 
class  RequestConnection
 
class  RequestPacket
 
class  RequestServer
 
class  Server
 
class  Service
 
class  Socket
 

Typedefs

typedef int ProcID
 

Enumerations

enum  SpecAddr {
  Any , IPv4 , IPv6 , Broadcast ,
  LocalIPv4 , LocalIPv6 , None
}
 

Functions

bool downloadFile (const char *url, const char *outpath, uiString &errmsg, TaskRunner *taskr=0)
 
bool downloadFiles (BufferStringSet &urls, BufferStringSet &outpaths, uiString &errmsg, TaskRunner *taskr=0)
 
bool downloadFiles (BufferStringSet &urls, const char *outpath, uiString &errmsg, TaskRunner *taskr=0)
 
bool downloadToBuffer (const char *url, DataBuffer *, uiString &errmsg, TaskRunner *taskr=0)
 
bool exists (const char *)
 
bool getContent (const char *, BufferString &)
 
od_int64 getFileSize (const char *)
 
PortNr_Type getNextCandidatePort ()
 
bool getProxySettingsFromUser ()
 
bool getRemoteFileSize (const char *url, od_int64 &size, uiString &errmsg)
 
PortNr_Type getUsablePort (PortNr_Type firstport=0)
 
PortNr_Type getUsablePort (uiRetVal &, PortNr_Type firstport=0, int maxportstotry=100)
 Returns 0 if none found. More...
 
bool isPortFree (PortNr_Type port, uiString *errmsg=nullptr)
 
bool ping (const char *url, uiString &msg)
 
void setHttpProxy (const char *hostname, int port, bool auth=false, const char *username=0, const char *password=0)
 
void setHttpProxyFromIOPar (const IOPar &)
 
void setHttpProxyFromSettings ()
 
const char * sKeyCryptProxyPassword ()
 
const char * sKeyProxyHost ()
 
const char * sKeyProxyPassword ()
 
const char * sKeyProxyPort ()
 
const char * sKeyProxyUserName ()
 
const char * sKeyUseAuthentication ()
 
const char * sKeyUseProxy ()
 
bool uploadFile (const char *url, const char *localfname, const char *remotefname, const char *ftype, const IOPar &postvars, uiString &errmsg, TaskRunner *taskr=0, uiString *returnedmessage=0)
 
bool uploadQuery (const char *url, const IOPar &querypars, uiString &errmsg, TaskRunner *taskr=0, uiString *returnedmessage=0)
 

Typedef Documentation

◆ ProcID

typedef int Network::ProcID

Enumeration Type Documentation

◆ SpecAddr

Enumerator
Any 
IPv4 
IPv6 
Broadcast 
LocalIPv4 
LocalIPv6 
None 

Function Documentation

◆ downloadFile()

bool Network::downloadFile ( const char *  url,
const char *  outpath,
uiString errmsg,
TaskRunner taskr = 0 
)

< Functions to download/upload one or more files/data using HTTP protocol

◆ downloadFiles() [1/2]

bool Network::downloadFiles ( BufferStringSet urls,
BufferStringSet outpaths,
uiString errmsg,
TaskRunner taskr = 0 
)

◆ downloadFiles() [2/2]

bool Network::downloadFiles ( BufferStringSet urls,
const char *  outpath,
uiString errmsg,
TaskRunner taskr = 0 
)

◆ downloadToBuffer()

bool Network::downloadToBuffer ( const char *  url,
DataBuffer ,
uiString errmsg,
TaskRunner taskr = 0 
)

◆ exists()

bool Network::exists ( const char *  )

◆ getContent()

bool Network::getContent ( const char *  ,
BufferString  
)

◆ getFileSize()

od_int64 Network::getFileSize ( const char *  )

◆ getNextCandidatePort()

PortNr_Type Network::getNextCandidatePort ( )

◆ getProxySettingsFromUser()

bool Network::getProxySettingsFromUser ( )

◆ getRemoteFileSize()

bool Network::getRemoteFileSize ( const char *  url,
od_int64 &  size,
uiString errmsg 
)

◆ getUsablePort() [1/2]

PortNr_Type Network::getUsablePort ( PortNr_Type  firstport = 0)

◆ getUsablePort() [2/2]

PortNr_Type Network::getUsablePort ( uiRetVal ,
PortNr_Type  firstport = 0,
int  maxportstotry = 100 
)

Returns 0 if none found.

◆ isPortFree()

bool Network::isPortFree ( PortNr_Type  port,
uiString errmsg = nullptr 
)

◆ ping()

bool Network::ping ( const char *  url,
uiString msg 
)

◆ setHttpProxy()

void Network::setHttpProxy ( const char *  hostname,
int  port,
bool  auth = false,
const char *  username = 0,
const char *  password = 0 
)

◆ setHttpProxyFromIOPar()

void Network::setHttpProxyFromIOPar ( const IOPar )

◆ setHttpProxyFromSettings()

void Network::setHttpProxyFromSettings ( )

◆ sKeyCryptProxyPassword()

const char* Network::sKeyCryptProxyPassword ( )
inline

◆ sKeyProxyHost()

const char* Network::sKeyProxyHost ( )
inline

◆ sKeyProxyPassword()

const char* Network::sKeyProxyPassword ( )
inline

◆ sKeyProxyPort()

const char* Network::sKeyProxyPort ( )
inline

◆ sKeyProxyUserName()

const char* Network::sKeyProxyUserName ( )
inline

◆ sKeyUseAuthentication()

const char* Network::sKeyUseAuthentication ( )
inline

◆ sKeyUseProxy()

const char* Network::sKeyUseProxy ( )
inline

◆ uploadFile()

bool Network::uploadFile ( const char *  url,
const char *  localfname,
const char *  remotefname,
const char *  ftype,
const IOPar postvars,
uiString errmsg,
TaskRunner taskr = 0,
uiString returnedmessage = 0 
)

◆ uploadQuery()

bool Network::uploadQuery ( const char *  url,
const IOPar querypars,
uiString errmsg,
TaskRunner taskr = 0,
uiString returnedmessage = 0 
)

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