sgcWebSockets · Technical Document
RCON Protocol
Source RCON protocol client — Valve / Source-engine remote console TCP client for Delphi.
Source RCON protocol client — Valve / Source-engine remote console TCP client for Delphi.
Source RCON protocol client — Valve / Source-engine remote console TCP client for Delphi. The component is part of the sgcWebSockets library.
TsgcLib_RCON| Standards & specs | Source RCON Protocol — Valve Developer Wiki |
| Component class | TsgcLib_RCON (unit sgcLib_RCON) |
| Frameworks | VCL, FireMonkey, Lazarus / FPC |
| Platforms | Windows, macOS, Linux, iOS, Android |
The principal published / public properties used to configure and drive the component. Consult the online help for the full list.
Active | Published or public property used to configure or query the component. |
OnAuthenticate | Published or public property used to configure or query the component. |
RCON_Options | Published or public property used to configure or query the component. |
OnConnect | Published or public property used to configure or query the component. |
OnDisconnect | Published or public property used to configure or query the component. |
OnResponse | Published or public property used to configure or query the component. |
OnException | Published or public property used to configure or query the component. |
NotifyEvents | Published or public property used to configure or query the component. |
Version | Published or public property used to configure or query the component. |
The principal public methods exposed by the component.
ExecCommand() | Public procedure exposed by the component. |
Drop the component on a form, configure the properties below and activate it. The snippet that follows shows the typical Send Commands configuration sourced from the online help.
oRCON := TsgcLib_RCON.Create(nil); oRCON.RCON_Options.Host := '127.0.0.1'; oRCON.RCON_Options.Port := 25575; oRCON.RCON_Options.Password := 'test'; oRCON.Active := True; <br/> procedure OnAuthenticate(Sender: TObject; Authenticated: Boolean; const aPacket: TsgcRCON_Packet); begin if Authenticated then DoLog('#authenticated') else DoLog('#not authenticated'); end; <br/> procedure OnResponse(Sender: TObject; const aResponse: string; const aPacket: TsgcRCON_Packet); begin DoLog(aResponse); end;
TsgcLib_RCON oRCON = new TsgcLib_RCON(); oRCON->RCON_Options->Host = "127.0.0.1"; oRCON->RCON_Options->Port = 25575; oRCON->RCON_Options->Password = "test"; oRCON->Active = true; <br/> void OnAuthenticate(TObject *Sender, bool Authenticated, const TsgcRCON_Packet *aPacket) { if (Authenticated == true) { DoLog("#authenticated"); } else { DoLog("#not authenticated"); } } <br/> void OnResponse(Object *Sender, const string aResponse, const TsgcRCON_Packet *aPacket) { DoLog(aResponse); }
TsgcLib_RCON oRCON = new TsgcLib_RCON(); oRCON.RCON_Options.Host = "127.0.0.1"; oRCON.RCON_Options.Port = 25575; oRCON.RCON_Options.Password = "test"; oRCON.Active = true; <br/> void OnAuthenticate(TObject Sender, bool Authenticated, const TsgcRCON_Packet aPacket) { if (Authenticated == true) { DoLog("#authenticated"); } else { DoLog("#not authenticated"); } } <br/> void OnResponse(Object Sender, const string aResponse, const TsgcRCON_Packet aPacket) { DoLog(aResponse); }
Every external claim links back to a primary source. The online-help references decode the canonical deep-link the company maintains for this component.
Demos\50.Other\02.RCON