예제 #1
0
 //public Tcp(string host = "80.69.129.4", int port = 12345) 80.69.129.12
 //public Tcp(string host = "80.69.129.64", int port = 8080)
 public Tcp(string host = "80.69.129.123", int port = 443)
 {
     _host = host;
     _port = port;
     _parser = new PacketParser(packet =>
     {
         if (PacketParsed != null)
             PacketParsed(packet);
         PacketManager.HandlePacket(this, packet);
     });
     Current = this;
 }
예제 #2
0
 //public Tcp(string host = "80.69.129.4", int port = 12345) 80.69.129.12
 //public Tcp(string host = "80.69.129.64", int port = 8080)
 public Tcp(string host = "80.69.129.123", int port = 443)
 {
     _host   = host;
     _port   = port;
     _parser = new PacketParser(packet =>
     {
         if (PacketParsed != null)
         {
             PacketParsed(packet);
         }
         PacketManager.HandlePacket(this, packet);
     });
     Current = this;
 }