39#ifndef __HttpSharkSslServCon_h
40#define __HttpSharkSslServCon_h
42#include <HttpServCon.h>
43#include <BaServerLib.h>
46#include <DoubleList.h>
67 void operator delete(
void* d) {
if(d)
::baFree(d); }
68 void *
operator new(size_t,
void *place) {
return place; }
69 void operator delete(
void*,
void *) { }
96 const void* interfaceName=0,
97 HttpServCon_AcceptNewCon userDefinedAccept=0);
102 int setPort(U16 portNumber,
bool setIp6=
false,
103 const void* interfaceName=0);
108 DoubleList sharkSslConList;
110 BaBool requestClientCert;
118SHARKSSL_API
void HttpSharkSslServCon_constructor(
122 struct SoDisp* dispatcher,
125 const void* interfaceName,
126 HttpServCon_AcceptNewCon userDefinedAccept);
127SHARKSSL_API
int HttpServCon_setPort(
HttpServCon* o, U16 portNumber,
128 BaBool setIp6,
const void* interfaceName);
132 const void* interfaceName);
133#define HttpSharkSslServCon_isValid(o) HttpServCon_isValid((HttpServCon*)o)
134#define HttpSharkSslServCon_requestClientCert(o,enable) \
135 (o)->requestClientCert=enable
136#define HttpSharkSslServCon_favorRSA(o,enable) \
141SHARKSSL_API
int HttpSharkSslServCon_bindExec(
142 SoDispCon* con, SharkSsl* ssl,
const char* alpn,
const char* host,
int port);
146inline HttpSharkSslServCon::HttpSharkSslServCon(
152 const void* interfaceName,
153 HttpServCon_AcceptNewCon userDefinedAccept) {
154 HttpSharkSslServCon_constructor(
155 this,sharkSsl,server,dispatcher,
156 port,setIP6?TRUE:FALSE,
157 interfaceName,userDefinedAccept); }
158inline BaBool HttpSharkSslServCon::isValid() {
159 return HttpServCon_isValid(
this); }
161 U16 portNumber,
bool setIp6,
const void* interfaceName) {
162 return HttpSharkSslServCon_setPort(
163 this,portNumber,setIp6?TRUE:FALSE,interfaceName);
166inline HttpSharkSslServCon::~HttpSharkSslServCon() {
167 HttpSharkSslServCon_destructor(
this);}
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.
Create a server listen object.
Definition: HttpServCon.h:61
The Web Server.
Definition: HttpServer.h:2864
Create a SharkSSL server listen object.
Definition: HttpSharkSslServCon.h:63
int setPort(U16 portNumber, bool setIp6=false, const void *interfaceName=0)
Change the port number for the "listen" object.
Definition: HttpSharkSslServCon.h:160
Contains information about the physical socket connection.
Definition: SoDispCon.h:112
The SoDisp dispatches any socket connection that contains data by calling the SoDispCon::execute memb...
Definition: SoDisp.h:86