Exemple #1
0
 private bool CanAcceptSocket(Socket socket)
 {
     try
     {
         var args = new SocketFilterEventArgs(socket);
         SocketAccepted(this, args);
         return(args.IsSocketOk);
     }
     catch (Exception err)
     {
         _logger.Error("SocketAccepted trigger exception: " + err);
         return(true);
     }
 }
Exemple #2
0
 private bool CanAcceptSocket(Socket socket)
 {
     try
     {
         var args = new SocketFilterEventArgs(socket);
         TextWrite.getWriteLogData("[소켓접속]" + "HttpListener | CanAcceptSocket");
         SocketAccepted(this, args);
         return(args.IsSocketOk);
     }
     catch (Exception err)
     {
         _logger.Error("SocketAccepted trigger exception: " + err);
         return(true);
     }
 }
		private bool CanAcceptSocket(Socket socket)
		{
			try
			{
				var args = new SocketFilterEventArgs(socket);
				SocketAccepted(this, args);
				return args.IsSocketOk;
			}
			catch (Exception err)
			{
				_logger.Error("SocketAccepted trigger exception: " + err);
				return true;
			}
		}