Interface IDataHandler
Handles data from SocketLayer A high level script should implement this interface give it to Peer when it is created
Syntax
public interface IDataHandler
Methods
ReceiveMessage(IConnection, ArraySegment<Byte>)
Receives a new Packet from low level
Declaration
void ReceiveMessage(IConnection connection, ArraySegment<byte> message)
Parameters
| Type | Name | Description |
|---|---|---|
| Mirage.SocketLayer.IConnection | connection | connection that sent data |
| System.ArraySegment<System.Byte> | message | Single message received by peer |