ENet Xojo plugin

ENetServer.CreateCustomPeer Event

Used this event if you want to have a class that is derived from ENetPeer that adds your own custom properties as the Peer class for the connection.

CreateCustomPeer() as ENetPeer

Parameters

Returns

ENetPeer
New instance of a custom peer class, or nil. If passing Nil then the plugin will internally create normal ENetPeer class instance.

Remarks

return new instance of your custom Peer class here.

Note:
Its very important that you do not try to reuse existing instance of you already have, it must be a new fresh instance you create inside this event.

See Also

ENetServer Class