Unit CastleClientServer

Description

Client and server for network communication using TCP (TCastleTCPClient, TCastleTCPServer). Use this in your games for easy client/server communication. See https://castle-engine.io/multi_player#indy .

On Android, it requires adding client_server service in your project. On other platforms, it requires having Indy available.

Source: files/indy/castleclientserver.pas (line 25).

Uses

  • Classes
  • SysUtils
  • Generics.Collections
  • IdTCPServer
  • IdTCPClient
  • IdContext
  • IdSocketHandle
  • IdGlobal

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TClientConnection  
Record TMessageClientRecord  
Class TThreadSynchronisationHandler Because Indys version isn't generic in FPC.
Class TCastleTCPClientThread  
Class TCastleSocket  
Class TCastleTCPServer  
Class TCastleTCPClient  

Types

TProcedureObject = procedure of object;
TConnectionEvent = procedure of object;
TClientConnectionEvent = procedure(AClientConnection: TClientConnection) of object;
TMessageReceivedEvent = procedure(const AMessage: String) of object;
TClientMessageReceivedEvent = procedure(const AMessage: String; AClientConnection: TClientConnection) of object;
TSynchronisedStringList = specialize TThreadList<String>;
TMessageClientList = specialize TThreadList<TMessageClientRecord>;
TClientContextList = specialize TThreadList<TIdContext>;

Description

Types

TProcedureObject = procedure of object;

This item has no description.

TConnectionEvent = procedure of object;

This item has no description.

TClientConnectionEvent = procedure(AClientConnection: TClientConnection) of object;

This item has no description.

TMessageReceivedEvent = procedure(const AMessage: String) of object;

This item has no description.

TClientMessageReceivedEvent = procedure(const AMessage: String; AClientConnection: TClientConnection) of object;

This item has no description.

TSynchronisedStringList = specialize TThreadList<String>;

This item has no description.

Source: files/indy/castleclientserver.pas (line 59).

TMessageClientList = specialize TThreadList<TMessageClientRecord>;

This item has no description.

Source: files/indy/castleclientserver.pas (line 68).

TClientContextList = specialize TThreadList<TIdContext>;

This item has no description.

Source: files/indy/castleclientserver.pas (line 69).


Generated by PasDoc 0.17.0.snapshot.