예제 #1
0
        private void DataReceived(object sender, PipeBaseEventArgs args)
        {
            PipeBaseForServer server = (PipeBaseForServer)sender;

            byte[] reply = args.Data;
            this.pipeFunction(ref reply);
            server.WriteBytes(reply);
        }
예제 #2
0
        private void OnReceive(object sender, PipeBaseEventArgs args)
        {
            byte[] data     = args.Data;
            string received = Encoding.UTF8.GetString(data);

            this.replyData = received;
            SetStatus(PipePacketStatus.Success);
            //CommonLog.WriteLog(LogLevel.Debug, "Client received: " + received);
        }