示例#1
0
 /// <summary>
 /// Stops the listening process and connections.
 /// </summary>
 public void Stop()
 {
     try
     {
         _mainSocket.Close();
         OnStopped();
     }
     catch (SocketException ex)
     {
         OnError(ex);
     }
 }