Example #1
0
 /// <summary>
 /// Udp callback when a new udp network message was received.
 /// </summary>
 /// <param name="endpoint"><see cref="IPEndPoint"/> containing the remote address:port that sent the message.</param>
 /// <param name="msg">The <see cref="NetworkMessage"/> from the remote udp client.</param>
 public void OnMessage(IPEndPoint endpoint, NetworkMessage msg)
 {
     if (host.HandlesMessage(endpoint, msg))
     {
         host.OnMessage(msg);
     }
 }