Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Stop listening for new Client connections
 /// </summary>
 public void Stop()
 {
     WriteLog("Stopping SocketListener", LogEventLevel.Information);
     AsynchronousSocketListener.StopListening();
 }