|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
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 () | |
| Uninitialized storage; use a C constructor before use or destruction. More... | |
| 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... | |
| BaBool | isValid () |
| int | setPort (U16 portNumber, bool setIp6=false, const void *interfaceName=0) |
| Open a replacement listener, then close the old listener on success. More... | |
| ~HttpSharkSslServCon () | |
| Close the listener and every accepted TLS connection still tracked by it. More... | |
| HttpSharkSslServCon::HttpSharkSslServCon | ( | ) |
Uninitialized storage; use a C constructor before use or destruction.
| 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 listener and its accepted connections. It must have role SharkSsl_Server and be configured before listening. An incorrect role violates the constructor precondition. |
| server | Required borrowed server, valid throughout listener use. |
| dispatcher | Required borrowed dispatcher, valid throughout use. |
| port | TCP listen port in host byte order, normally 443. Zero initializes an inactive listener without opening a socket. |
| setIP6 | TRUE selects IPv6, FALSE IPv4. This parameter is ignored unless the underlying TCP/IP stack is a dual IP V4 and IP V6 stack. |
| interfaceName | Borrowed platform binding address/interface, used during the call; normally a NUL-terminated address string. NULL binds the wildcard address. Accepted representation is platform-specific. |
| userDefinedAccept | Same functionality as for HttpServCon, but this callback is for implementing secure servers. The temporary-connection ownership rules of HttpServCon_AcceptNewCon apply. The callback may run before the TLS handshake completes. It is required in NO_BA_SERVER builds; otherwise NULL selects HTTP handling. |
| HttpSharkSslServCon::~HttpSharkSslServCon | ( | ) |
Close the listener and every accepted TLS connection still tracked by it.
Does not destroy the borrowed TLS configuration, server or dispatcher.
| BaBool HttpSharkSslServCon::isValid | ( | ) |
| int HttpSharkSslServCon::setPort | ( | U16 | portNumber, |
| bool | setIp6 = false, |
||
| const void * | interfaceName = 0 |
||
| ) |
Open a replacement listener, then close the old listener on success.
| [in] | portNumber | New TCP port in host byte order, 1..65535. |
| [in] | setIp6 | True selects IPv6, false IPv4 (default). |
| [in] | interfaceName | Borrowed platform binding address/interface, or NULL for wildcard; used during this call only. |