Exemplo n.º 1
0
 private void OpendSocks5Client_OnDataReceived(object sender, Socks5ClientDataArgs e)
 {
     //			logger.Info("data receive:" + Encoding.UTF8.GetString(e.Buffer));
     //			logger.Info("send begin");
     //			opendSocket.Send(e.Buffer, e.Offset, e.Count, SocketFlags.None);
     //			logger.Info("send end");
 }
Exemplo n.º 2
0
 static void Client_OnDataReceived(object sender, Socks5ClientDataArgs e)
 {
     Console.WriteLine("Received {0} bytes from server.", e.Count);
     e.Client.Send(e.Buffer, 0, e.Count);
     e.Client.ReceiveAsync();
 }
Exemplo n.º 3
0
 void Client_OnDataReceived(object sender, Socks5ClientDataArgs e)
 {
     DoLog(string.Format("Received {0} bytes from server.", e.Count));
     e.Client.Send(e.Buffer, 0, e.Count);
     e.Client.ReceiveAsync();
 }
Exemplo n.º 4
0
 private static void M_OnDataReceived(object sender, Socks5ClientDataArgs e)
 {
     Console.WriteLine(Encoding.ASCII.GetString(e.Buffer));
     e.Client.ReceiveAsync();
 }