OdinClient
public class OdinClient : MarshalByRefObject, IDisposable
Client Wrapper for ODIN ffi OdinNative.Core.OdinLibrary.NativeMethods
Static Methods
Name | Description |
---|---|
Create | Creates a new initialized instance for ODIN ffi C# Wrapper |
CreateAccessKey | Create a example access key that can be registered on 4Players (see https://developers.4players.io/odin/ ) |
CreateToken | Create a example token to join a room. For production use a token server! |
Properties
Name | Description |
---|---|
Rooms | A collection of all Room |
EndPoint | Connection EndPoint. Default from OdinEditorConfig. |
AccessKey | Client AccessKey for all new rooms. Default from OdinHandler config. |
UserData |
Public Methods
Name | Description |
---|---|
GenerateToken | Create a example token to join a room. For production use a token server! |
CreateRoom | Create a room for the set gateway. |
JoinRoom | Create and join a Room |
Join | Join a object of base Room |
CloseRoom | Close a room by Id |
FreeRoom | Close and remove a room by Id |
BroadcastSendMessage | Send a message to all rooms with the default encoding UTF8 |
CloseRooms | Completely closes all Room associated. |
FreeRooms | Free all Room associated. |
Dispose | On dispose will free all NativeMethods |