41#ifndef __HttpServCon_h
42#define __HttpServCon_h
74 void operator delete(
void* d) {
if(d)
::baFree(d); }
75 void *
operator new(size_t,
void *place) {
return place; }
76 void operator delete(
void*,
void *) { }
149 const void* interfaceName=0,
168 int setPort(
U16 portNumber,
bool setIp6=
false,
169 const void* interfaceName=0);
190 struct SoDisp* dispatcher,
193 const void* interfaceName,
197#define HttpServCon_isValid(o) \
198 SoDispCon_isValid((SoDispCon*)(o))
202 BaBool setIp6,
const void* interfaceName);
206BA_API
int HttpServCon_init(
211 const void* interfaceName);
214BA_API
void HttpServCon_bindExec(
SoDispCon* con);
222 const void* interfaceName,
232 U16 portNumber,
bool setIp6,
const void* interfaceName) {
struct HttpServCon HttpServCon
Create a server listen object.
void(* HttpServCon_AcceptNewCon)(struct HttpServCon *scon, HttpConnection *newcon)
Handle a newly accepted connection while the dispatcher mutex is held.
Definition: HttpServCon.h:58
BA_API void HttpServCon_destructor(HttpServCon *o)
Close and unregister a listener; does not close its accepted connections.
#define HttpServCon_isValid(o)
Definition: HttpServCon.h:197
BA_API int HttpServCon_setPort(HttpServCon *o, U16 portNumber, BaBool setIp6, const void *interfaceName)
Open a replacement listening endpoint before closing the old one.
BA_API void HttpServCon_constructor(HttpServCon *o, struct HttpServer *server, struct SoDisp *dispatcher, U16 port, BaBool setIP6, const void *interfaceName, HttpServCon_AcceptNewCon userDefinedAccept)
Create a Server Connection.
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
U8 BaBool
Boolean stored in an unsigned byte; FALSE is zero and TRUE is one.
Definition: GenPrimT.h:118
Contains information about the physical socket connection.
Definition: HttpConnection.h:80
Create a server listen object.
Definition: HttpServCon.h:70
BaBool isValid()
Definition: HttpServCon.h:230
~HttpServCon()
Close and unregister the listener; accepted connections are separate.
Definition: HttpServCon.h:227
int setPort(U16 portNumber, bool setIp6=false, const void *interfaceName=0)
Open a replacement listening endpoint before closing the old one.
Definition: HttpServCon.h:231
HttpServCon()
Uninitialized storage; initialize before use or destruction.
Definition: HttpServCon.h:175
The Web Server.
Definition: HttpServer.h:3393
Contains information about the physical socket connection.
Definition: SoDispCon.h:120
The SoDisp dispatches any socket connection that contains data by calling the SoDispCon::execute memb...
Definition: SoDisp.h:91