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/manual_network.php#section_multi_player .
On Android, it requires adding client_server service in your project. On other platforms, it requires having Indy available.
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. |
TMessageClientList = specialize TThreadList<TMessageClientRecord>; |
This item has no description. |
TClientContextList = specialize TThreadList<TIdContext>; |
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.