/// <summary> /// Start listening for new Client Connections /// </summary> public void Start() { WriteLog(string.Format("Starting Socket Listener: {0}:{1}", _endPoint.Address, _endPoint.Port)); AsynchronousSocketListener.NewConnection += NewConnection; AsynchronousSocketListener.SocketError += SocketError; AsynchronousSocketListener.RequestReceived += RequestReceived; AsynchronousSocketListener.StartListening(_endPoint); }
/// <summary> /// Stop listening for new Client connections /// </summary> public void Stop() { WriteLog("Stopping SocketListener", LogEventLevel.Information); AsynchronousSocketListener.StopListening(); }