79 void operator delete(
void* d) {
if(d)
::baFree(d); }
80 void *
operator new(size_t,
void *place) {
return place; }
81 void operator delete(
void*,
void *) { }
140 int setUser(
const char* user,
const char* password);
160 int setProxyUser(
const char* user,
const char* password);
180 void setSSL(
struct SharkSsl* sharkSslClient);
191 struct SharkSsl* sharkSslClient;
246#define NetIo_setSSL(o, ssl) (o)->sharkSslClient=ssl
void NetIo_destructor(NetIo *o)
Close the cached HTTP client and free copied configuration and its mutex.
int NetIo_setProxyUser(NetIo *o, const char *user, const char *password)
Set copied proxy authentication credentials; discard the cached client.
int NetIo_setProxy(NetIo *o, const char *proxy, U16 portNo, BaBool useSocksProxy)
Set proxy.
int NetIo_setIntfName(NetIo *o, const char *intfName)
Select the local interface for future HTTP clients.
#define NetIo_setSSL(o, ssl)
Assign TLS configuration for future clients without changing the cached client.
Definition: NetIo.h:246
int NetIo_setUser(NetIo *o, const char *user, const char *password)
Set HTTP Basic authentication credentials and discard the cached client.
int NetIo_setIPv6(NetIo *o, BaBool enable)
Select the family for subsequent connections and discard the cached client.
void NetIo_constructor(NetIo *o, struct SoDisp *disp)
The NetIo constructor.
int NetIo_setRootDir(NetIo *o, const char *url)
Initialize/set the URL to the far side Barracuda server.
NetIo NetIo
The NetIo is similar to a network file system and makes it possible for the server to access resource...
void * baMalloc(size_t size)
Allocate uninitialized storage using the target's configured allocator.
void baFree(void *p)
Release storage using the target's configured allocator.
uint16_t U16
Unsigned 16-bit integer.
Definition: GenPrimT.h:91
uint8_t U8
Unsigned 8-bit integer.
Definition: GenPrimT.h:89
U8 BaBool
Boolean stored in an unsigned byte; FALSE is zero and TRUE is one.
Definition: GenPrimT.h:118
Blocking HTTP/1.1 client with optional SharkSSL HTTPS support.
Definition: HttpClient.h:187
U16 proxyPortNo
Proxy TCP port, 1 through 65535 when proxy is configured.
Definition: HttpClient.h:396
const char * intfName
Borrowed local interface name/address, or NULL for the default binding.
Definition: HttpClient.h:386
const char * proxy
Borrowed proxy host string, or NULL for a direct connection.
Definition: HttpClient.h:382
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:482
The NetIo is similar to a network file system and makes it possible for the server to access resource...
Definition: NetIo.h:77
int setIntfName(const char *intfName)
Select the local interface for future HTTP clients.
Definition: NetIo.h:270
int setRootDir(const char *url)
Initialize/set the URL to the far side Barracuda server.
Definition: NetIo.h:258
void setIPv6(bool enable)
Select the address family and discard the cached client.
Definition: NetIo.h:273
int setProxyUser(const char *user, const char *password)
Set copied proxy authentication credentials; discard the cached client.
Definition: NetIo.h:267
int setProxy(const char *proxy, U16 portNo, BaBool useSocksProxy)
Set proxy.
Definition: NetIo.h:264
void setSSL(struct SharkSsl *sharkSslClient)
Configure TLS for future HTTP clients.
Definition: NetIo.h:276
NetIo(struct SoDisp *disp=0)
The NetIo constructor.
Definition: NetIo.h:252
~NetIo()
Close the cached HTTP client and free copied configuration and its mutex.
Definition: NetIo.h:255
int setUser(const char *user, const char *password)
Set HTTP Basic authentication credentials and discard the cached client.
Definition: NetIo.h:261
The SoDisp dispatches any socket connection that contains data by calling the SoDispCon::execute memb...
Definition: SoDisp.h:91
A mutual exclusion class.
Definition: ThreadLib.h:196