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

Classes

class  Authority
 
class  FileCache
 
class  HttpRequest
 
class  HttpRequestManager
 
class  HttpRequestProcess
 
class  PacketFiller
 
class  PacketInterpreter
 
class  ReadCache
 
class  RequestConnection
 
class  RequestPacket
 
class  RequestServer
 
class  Server
 
class  Service
 
class  Socket
 
class  WriteCache
 

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 *=nullptr)
 
bool downloadFiles (BufferStringSet &urls, BufferStringSet &outpaths, uiString &errmsg, TaskRunner *=nullptr)
 
bool downloadFiles (BufferStringSet &urls, const char *outpath, uiString &errmsg, TaskRunner *=nullptr)
 
bool downloadToBuffer (const char *url, DataBuffer &, uiString &errmsg, TaskRunner *=nullptr)
 
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=nullptr, const char *password=nullptr)
 
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 *=nullptr, uiString *returnedmessage=nullptr)
 
bool uploadQuery (const char *url, const IOPar &querypars, uiString &errmsg, TaskRunner *=nullptr, uiString *returnedmessage=nullptr)
 

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 = nullptr 
)

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 = nullptr 
)

◆ downloadFiles() [2/2]

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

◆ downloadToBuffer()

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

◆ 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 = nullptr,
const char *  password = nullptr 
)

◆ 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 = nullptr,
uiString returnedmessage = nullptr 
)

◆ uploadQuery()

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

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