Unit 'fpwebsocketserver' Package
[Overview][Types][Classes][Index] [#fcl-web]

TWebSocketServer

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: fpwebsocketserver.pp line 31

type TWebSocketServer = class(TCustomWSServer)

protected

  procedure SetThreadMode(); override;

  function GetActive; override;

  procedure SetActive(); override;

  procedure FreeServerSocket; virtual;

  procedure StartAccepting; virtual;

  procedure SetupSocket; virtual;

  procedure StartServerSocket; virtual;

  procedure CreateServerSocket; virtual;

  function CreateSSLSocketHandler; virtual;

  procedure DoConnect(); virtual;

  procedure DoCreateClientHandler(); virtual;

  procedure DoAllowConnect(); virtual;

  procedure DoAcceptError(); virtual;

  procedure DoAcceptIdle(); virtual;

  property Server: TInetServer; [r]

public

  constructor Create(); override; overload;

  destructor Destroy; override;

  procedure StartServer;

  procedure StopServer;

  procedure CheckIncomingMessages;

published

  property Active: Boolean; [rw]

  property MessageWaitTime: Cardinal;

  property Options: TWSOptions;

  property Port: Word; [rw]

  property Host: string; [rw]

  property Resource: string;

  property WebSocketVersion: Integer;

  property OnConnect: TWSConnectEvent;

  property OnAllow: TWSAllowConnectionEvent;

  property OutgoingFrameMask: Integer;

  property OnMessageReceived: TWSMessageEvent;

  property OnDisconnect: TNotifyEvent;

  property OnControlReceived: TWSControlEvent;

  property OnError: TWSErrorEvent;

  property OnConnectionHandshake: TWSConnectionHandshakeEvent;

  property ThreadMode: TWSThreadMode;

  property UseSSL: Boolean; [rw]

  property CertificateData: TCertificateData; [rw]

  property OnGetSocketHandler: TWSGetSocketHandlerEvent; [rw]

  property AfterSocketHandlerCreate: TWSSocketHandlerCreatedEvent; [rw]

  property AcceptIdleTimeout: Cardinal; [rw]

  property QueueSize: Word; [rw]

  property ThreadedAccept: Boolean; [rw]

  property OnAcceptIdle: TAcceptIdleEvent; [rw]

end;

Inheritance

TWebSocketServer

|

TCustomWSServer

|

TObject


Documentation generated on: 2023-03-18