40#include <HttpServer.h>
76 void operator delete(
void* d) {
if(d)
::baFree(d); }
77 void *
operator new(size_t,
void *place) {
return place; }
78 void operator delete(
void*,
void *) { }
123 int setUser(
const char* user,
const char* password);
130 int setProxy(
const char* proxy, U16 portNo, BaBool useSocksProxy);
134 int setProxyUser(
const char* user,
const char* password);
147 void setSSL(
struct SharkSsl* sharkSslClient);
158 struct SharkSsl* sharkSslClient;
180void NetIo_constructor(
NetIo* o,
struct SoDisp* disp);
181void NetIo_destructor(
NetIo* o);
182int NetIo_setRootDir(
NetIo* o,
const char* url);
185int NetIo_setUser(
NetIo* o,
const char* user,
const char* password);
187 NetIo* o,
const char* proxy, U16 portNo, BaBool useSocksProxy);
188int NetIo_setProxyUser(
NetIo* o,
const char* user,
const char* password);
189int NetIo_setIntfName(
NetIo* o,
const char* intfName);
190int NetIo_setIPv6(
NetIo* o, BaBool enable);
191#define NetIo_setSSL(o, ssl) (o)->sharkSslClient=ssl
198 NetIo_constructor(
this, disp);
201 NetIo_destructor(
this);
204 return NetIo_setRootDir(
this, url);
207 return NetIo_setUser(
this, user, password);
210 return NetIo_setProxy(
this, proxy, portNo, useSocksProxy);
213 return NetIo_setProxyUser(
this, user, password);
216 return NetIo_setIntfName(
this, intfName);
219 NetIo_setIPv6(
this, enable ? TRUE : FALSE);
221inline void NetIo::setSSL(
struct SharkSsl* sharkSslClient) {
222 NetIo_setSSL(
this, sharkSslClient);
void * baMalloc(size_t size)
Returns pointer to uninitialized newly-allocated space for an object of size "size",...
void baFree(void *p)
Deallocates space to which it points.
The HTTP(S) "C" client library implementation conforms to the HTTP/1.1 standard, RFC 2616.
Definition: HttpClient.h:190
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:377
The NetIo is similar to a network file system and makes it possible for the server to access resource...
Definition: NetIo.h:74
int setIntfName(const char *intfName)
When connection, bind to intfName.
Definition: NetIo.h:215
int setRootDir(const char *url)
Initialize/set the URL to the far side Barracuda server.
Definition: NetIo.h:203
void setIPv6(bool enable)
Use IPv6, default is IPv4.
Definition: NetIo.h:218
int setProxyUser(const char *user, const char *password)
Set proxy username.
Definition: NetIo.h:212
int setProxy(const char *proxy, U16 portNo, BaBool useSocksProxy)
Set proxy.
Definition: NetIo.h:209
NetIo(struct SoDisp *disp=0)
The NetIo constructor.
Definition: NetIo.h:197
~NetIo()
The NetIo destructor.
Definition: NetIo.h:200
int setUser(const char *user, const char *password)
Set HTTP basic authentication username and password.
Definition: NetIo.h:206
The SoDisp dispatches any socket connection that contains data by calling the SoDispCon::execute memb...
Definition: SoDisp.h:86
A mutual exclusion class.
Definition: ThreadLib.h:186