Esempio n. 1
0
        /// <summary>
        ///		Shutdowns the receiving.
        /// </summary>
        protected sealed override void ShutdownReceiving()
        {
            try {
                BoundSocket.Shutdown(SocketShutdown.Receive);
            }
            catch (SocketException ex) {
                if (ex.SocketErrorCode != SocketError.NotConnected)
                {
                    throw;
                }
            }

            base.ShutdownReceiving();
        }