Beispiel #1
0
        protected AsyncSocketImpl(AsyncSocketImpl sockImpl)
        {
            sockImpl.DisableEvents();
            socketManager_.RemoveAsyncSocket(sockImpl);

            socket_ = sockImpl.socket_;

            Init();
        }
Beispiel #2
0
        public bool AttachHandle(AsyncSocketImpl sockImpl)
        {
            if (sockImpl == null)
            {
                return(false);
            }

            sockImpl.DisableEvents();
            socketManager_.RemoveAsyncSocket(sockImpl);

            DisableEvents();
            socket_ = sockImpl.socket_;

            Init();

            return(true);
        }