Exemplo n.º 1
0
 private void Debug(object obj, params object[] args)
 {
     lock (_debugMutex)
     {
         Console.ForegroundColor = IsServer ? ConsoleColor.Cyan : ConsoleColor.Green;
         RUDPLogger.Info(IsServer ? "[S]" : "[C]", obj, args);
         Console.ResetColor();
     }
 }
Exemplo n.º 2
0
 public virtual void PacketReceive(IPEndPoint ep, byte[] data, int length)
 {
     RUDPLogger.Trace("RECV <- {0}: {1}", ep, Encoding.ASCII.GetString(data, 0, length));
 }
Exemplo n.º 3
0
 public virtual int PacketSending(IPEndPoint endPoint, byte[] data, int length)
 {
     RUDPLogger.Trace("SEND -> {0}: {1}", endPoint, Encoding.ASCII.GetString(data, 0, length));
     return(-1);
 }