Exemplo n.º 1
0
        public SockSess MakeListen(IPEndPoint ep)
        {
            ThreadCheck(false);

            SockSess retval = SockSess.Listen(ep);

            if (retval == null)
            {
                log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)
                .Warn(String.Format("Listened to {0} failed.(alreay in listening)", ep.ToString()));
                return(null);
            }

            AddSession(retval);
            return(retval);
        }