ENet Class Library for C#

Packet.SetUserData(Object, Object) Method

Associates user data with this packet and a particular key.

[Visual Basic]
Public Overloads Sub SetUserData( _
   ByVal key As Object, _
   ByVal value As Object _
)
[C#]
public void SetUserData(
   object key,
   object value
);

Parameters

key
The key to use.
value
The user data.

See Also

Packet Class | ENet Namespace | Packet.SetUserData Overload List