Skip to main content
Version: 2.x

Class OdinConnection

Wrapper class of Odin connections

This convenient class provides dispatching of events to Unity with passthrough to support multiple rooms on fewer connections.

Assembly: cs.temp.dll.dll
Declaration
public class OdinConnection : MonoBehaviour

Properties

Handle

Odin connection

Declaration
public OdinConnectionPoolHandle Handle { get; }

EventUserdata

Custom connection userdata

Declaration
public MarshalByRefObject EventUserdata { get; }

Fields

Settings

Native connection settings

Declaration
public OdinConnectionPoolSettings Settings

OnDatagram

Redirect of OdinNative.Wrapper.Room.Room.OnDatagram

Declaration
public DatagramProxy OnDatagram

OnRpc

Redirect of OdinNative.Wrapper.Room.Room.OnRpc

Declaration
public RpcProxy OnRpc

Methods

OnNativeDatagramReceived(ulong, ushort, IntPtr, uint, MarshalByRefObject)

Declaration
protected virtual void OnNativeDatagramReceived(ulong room_id, ushort media_id, IntPtr bytesPtr, uint bytes_length, MarshalByRefObject user_data)
Parameters
TypeName
System.UInt64room_id
System.UInt16media_id
Odin.IntPtrbytesPtr
System.UInt32bytes_length
Odin.MarshalByRefObjectuser_data

OnNativeRPCReceived(ulong, IntPtr, uint, MarshalByRefObject)

Declaration
protected virtual void OnNativeRPCReceived(ulong room_id, IntPtr bytesPtr, uint bytes_length, MarshalByRefObject user_data)
Parameters
TypeName
System.UInt64room_id
Odin.IntPtrbytesPtr
System.UInt32bytes_length
Odin.MarshalByRefObjectuser_data