コード例 #1
0
        // Receive thread
        protected override void recvLoop()
        {
            try
            {
                Random rnd = new Random();
                CoreProtocolMessage.sendHelloMessageV6(this, false, rnd.Next());

                base.recvLoop();
            }catch (Exception e)
            {
                if (running)
                {
                    Logging.warn(string.Format("recvRE: Disconnected client {0} with exception {1}", getFullAddress(), e.ToString()));
                }
                state   = RemoteEndpointState.Closed;
                running = false;
            }
        }