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); }
override public object Connected(UniNetObject connection, out KLib.NetCore.Error.NetCoreException err) { connection.Write(Encoding.ASCII.GetBytes(data), out err); return(null); }