Exemplo n.º 1
0
 public ServerTcpListener(string myAdress, int port)
 {
     this.Adress      = IPAddress.Parse(myAdress);
     this.Port        = port;
     Server           = new TcpListener(Adress, port);
     this.EndPointApi = new EndPointApi <IRequestContext, int>();
 }
Exemplo n.º 2
0
 public ServerTcpListener()
 {
     Adress           = IPAddress.Parse("127.0.0.1");
     Port             = 1235;
     Server           = new TcpListener(Adress, Port);
     this.EndPointApi = new EndPointApi <IRequestContext, int>();
 }