Barracuda Application Server C/C++ Reference
NO
HttpSharkSslServCon Struct Reference

Detailed Description

Create a SharkSSL server listen object.

The object binds itself to the SoDisp object and makes the web-server listen for new connections on the port specified. The default port is 443. You can create several of these objects and bind to the dispatcher if you want the web-server to listen to more than one port.

#include <HttpSharkSslServCon.h>

Public Member Functions

 HttpSharkSslServCon (SharkSsl *sharkSsl, HttpServer *server, SoDisp *dispatcher, U16 port=443, bool setIP6=false, const void *interfaceName=0, HttpServCon_AcceptNewCon userDefinedAccept=0)
 Create a SharkSSL Server Connection. More...
 
int setPort (U16 portNumber, bool setIp6=false, const void *interfaceName=0)
 Change the port number for the "listen" object.
 

Constructor & Destructor Documentation

◆ HttpSharkSslServCon()

HttpSharkSslServCon::HttpSharkSslServCon ( SharkSsl *  sharkSsl,
HttpServer server,
SoDisp dispatcher,
U16  port = 443,
bool  setIP6 = false,
const void *  interfaceName = 0,
HttpServCon_AcceptNewCon  userDefinedAccept = 0 
)

Create a SharkSSL Server Connection.

Parameters
sharkSslis the SharkSsl instance required for operating the server connection. You must make sure that this object is valid for the lifetime of the HttpSharkSslServCon instance.
serveris the web-server object.
dispatcheris SoDisp object.
portthe server port; normally port 443
setIP6Set protcol version. This parameter is ignored unless the underlying TCP/IP stack is a dual IP V4 and IP V6 stack.
interfaceNamethe name of the interface used when binding the server socket. If this is zero, any available interface will be selected.
userDefinedAcceptSame functionality as for HttpServCon, but this callback is for implementing secure servers. See HttpServCon for more information.