private Task TcpClient_MessageEvent(object sender, Tcp.NET.Client.Events.Args.TcpMessageClientEventArgs args)
 {
     if (args.MessageEventType == PHS.Networking.Enums.MessageEventType.Receive)
     {
         lastResponse = args.Message;
     }
     return(Task.CompletedTask);
 }
Exemple #2
0
 private Task TCPClient_MessageEvent(object sender, Tcp.NET.Client.Events.Args.TcpMessageClientEventArgs args)
 {
     Console.WriteLine((args.MessageEventType == PHS.Networking.Enums.MessageEventType.Receive ? "S" : "C") + ": " + args.Message.Replace("\r\n", ""));
     return(Task.CompletedTask);
 }