Barracuda Application Server C/C++ Reference
NO
|
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. | |
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.
sharkSsl | is 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. |
server | is the web-server object. |
dispatcher | is SoDisp object. |
port | the server port; normally port 443 |
setIP6 | Set protcol version. This parameter is ignored unless the underlying TCP/IP stack is a dual IP V4 and IP V6 stack. |
interfaceName | the name of the interface used when binding the server socket. If this is zero, any available interface will be selected. |
userDefinedAccept | Same functionality as for HttpServCon, but this callback is for implementing secure servers. See HttpServCon for more information. |