Table of Contents

TSocketHttpServer.Start Method

Starts the server: binds a listening socket for each port used by the registered modules and begins accepting connections.

Remarks

Raises ESocketServerException when no modules are registered, when a module base URI scheme is neither http nor https, when http and https modules share the same port, or when a listening socket cannot be created. When https modules are registered, the certificates in Ssl are loaded before any port is bound, so a certificate problem aborts the start. Does nothing when the server is already running.

Syntax

Unit: Sparkle.Socket.Server

procedure TSocketHttpServer.Start;

See also