Example #1
0
        public ConnectionIntercept Accept(object connection)
        {
            ConnectionIntercept TempResult = null;

            if (mIntercept != null)
            {
                TempResult = mIntercept.Accept(connection);
            }
            if (TempResult != null)
            {
                TempResult.Intercept = DoAccept(connection);
            }
            else
            {
                TempResult = DoAccept(connection);
            }
            return(TempResult);
        }
Example #2
0
 public Socket Accept()
 {
     if (mIntercept == null)
     {
         Socket TempResult = DoAccept();
         TempResult.Open();
         return(TempResult);
     }
     else
     {
         Socket TempResult = DoAccept();
         if (TempResult != null)
         {
             TempResult.Intercept = mIntercept.Accept(TempResult);
         }
         TempResult.Open();
         return(TempResult);
     }
 }