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(); } }
public virtual void PacketReceive(IPEndPoint ep, byte[] data, int length) { RUDPLogger.Trace("RECV <- {0}: {1}", ep, Encoding.ASCII.GetString(data, 0, length)); }
public virtual int PacketSending(IPEndPoint endPoint, byte[] data, int length) { RUDPLogger.Trace("SEND -> {0}: {1}", endPoint, Encoding.ASCII.GetString(data, 0, length)); return(-1); }