Discuss this help topic in SecureBlackbox Forum
HTTPS: Setup the connection parameters
TElHTTPSServer is a low-level class, each instance of which handles one connection from the client.
Here's how you setup the HTTPS server, should you need one:
- Create a TCP (or other) server which will accept incoming connections;
- Create an instance of TElHTTPSServer for each established connection;
- Optionally dedicate a thread for the new connection (or make the HTTPS server share the worker thread with other connections);
- Handle the events of TElHTTPSServer, described below;
- Call TElHTTPSServer.Open() method;
- Handle the dataflow;
- Once done (the request is completed and keep-alive is not used, or the client disconnects itself, or timeout happens), call TElHTTPSServer.Close() method
For the server to work, you need to handle at least the following events of TElHTTPSServer:
- OnOpenConnection - fired when the incoming connection is established;
- OnSend - used to send the outgoing data to the client connection;
- OnReceive - used to request the incoming data from the client connection;
- OnCloseConnection - fired when the incoming connection is closed
Additionally you need to handle
How To articles about server-side HTTPS questions
Discuss this help topic in SecureBlackbox Forum