Exemplo n.º 1
0
 public void StartListen()
 {
     SocketListener.Bind(IPEndPoint);
     SocketListener.Listen(ConstantProperty.BACKLOG);
     Stopping     = new ManualResetEvent(false);
     ListenThread = new Thread(new ThreadStart(AcceptConnection));
     ListenThread.Start();
 }
Exemplo n.º 2
0
 public async Task Initialize()
 {
     await _listener.Bind();
 }