示例#1
0
 override public object Received(byte[] data, UniNetObject connection, out KLib.NetCore.Error.NetCoreException err, object Addition = null)
 {
     if (displayReceive)
     {
         Log.log(Count.ToString() + ":" + Encoding.ASCII.GetString(data), Log.INFO, "EchoReceived");
     }
     Count++;
     connection.Write(data, out err);
     return(null);
 }
示例#2
0
 override public object Connected(UniNetObject connection, out KLib.NetCore.Error.NetCoreException err)
 {
     connection.Write(Encoding.ASCII.GetBytes(data), out err);
     return(null);
 }