コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: ServerManager.cs プロジェクト: daxola123/Qbes
 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);
      }
 }
コード例 #3
0
 internal void SendTcpPairMessage(string entityID)
 {
     _ClientTcp.SendObject("Message", entityID);
 }