HTTP API Server

TsgcWebSocketServer_HTTPAPI — use the Microsoft HTTP Server API (HTTP.SYS) as the kernel-level HTTP transport on Windows. WebSockets, HTTP/1.1 and HTTP/2 in one component, with kernel-mode I/O completion ports for high-concurrency workloads.

TsgcWebSocketServer_HTTPAPI

High-performance WebSocket + HTTP server built on the Windows HTTP Server API (http.sys). Kernel-mode HTTPS termination, no Indy listener, scales further than the standard server on Windows.

Klasa komponentu

TsgcWebSocketServer_HTTPAPI

Protokół

WebSocket over http.sys — RFC 6455

Platformy

Windows (http.sys kernel driver)

Edycja

Enterprise

Drop the component, set a few properties, go

Same OnConnect/OnMessage surface as TsgcWebSocketHTTPServer; binds via http.sys instead of Indy.

uses
  sgcWebSocket_HTTPAPI;

var
  Server: TsgcWebSocketServer_HTTPAPI;
begin
  Server := TsgcWebSocketServer_HTTPAPI.Create(nil);
  Server.Port := 443;
  Server.SSL := True;
  Server.SSLOptions.CertFile := 'server.pem';

  Server.OnConnect    := ServerConnect;
  Server.OnMessage    := ServerMessage;
  Server.OnDisconnect := ServerDisconnect;

  Server.Active := True;
end;

Co jest w środku

27 published properties, 9 methods, 23 events — pulled from the component reference.

Connection

Published properties: Active, Host, Port.

Messaging

Methods: Broadcast, WriteData, Ping.

Reliability

Published properties: HeartBeat, WatchDog, Firewall.

Security

Published properties: Authentication, SSL, SSLOptions.

Lifecycle

Events: OnStartup, OnShutdown, OnBeforeBinding.

Data

Events: OnMessage, OnBinary, OnFragmented.

Specyfikacje i źródła

Autorytatywne źródła protokołów implementowanych przez ten komponent.

Dokumentacja i dema

Bezpośredni link do dokumentacji komponentu, gotowy do uruchomienia projekt demo i pobieranie wersji próbnej.

Demo Project — 02.HTTP\API.Server Gotowy do uruchomienia projekt przykładowy. Dostarczany w pakiecie sgcWebSockets — pobierz wersję próbną poniżej.
Dokument techniczny (PDF) Funkcje, szybki start, przykłady kodu dla Delphi i C++ Builder oraz źródła pierwotne — tylko ten komponent.
Podręcznik użytkownika (PDF) Kompleksowy podręcznik obejmujący każdy komponent biblioteki.

Run High-Concurrency Servers on Windows

Pobierz bezpłatną wersję próbną i przełącz your Delphi server to the kernel-mode HTTP.SYS transport.