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>(); }
public ServerTcpListener() { Adress = IPAddress.Parse("127.0.0.1"); Port = 1235; Server = new TcpListener(Adress, Port); this.EndPointApi = new EndPointApi <IRequestContext, int>(); }