private void ReceivedMessageTcpString(PacketHeader header, ConnectionTcp connection, string message) { try { Console.WriteLine("Paired TCP connection for {0}: {1}", message, connection.ConnectionInfo.RemoteEndPoint); _Clients.SetPlayerConnectionTcp(Convert.ToUInt16(message), connection); connection.SendObject("Message", "Connected"); } catch (Exception ex) { ExceptionHandler.LogException(ex); } }
internal void SendTcpPairMessage(string entityID) { _ClientTcp.SendObject("Message", entityID); }