예제 #1
0
        public void Redirect(String hashlink)
        {
            Room room = Hashlink.DecodeHashlink(hashlink);

            if (room != null && this.Level == ILevel.Regular)
            {
                byte[] buf;

                while (this.data_out.Count > 0)
                {
                    if (!this.data_out.TryDequeue(out buf))
                    {
                        break;
                    }
                }

                this.SendPacket(TCPOutbound.Redirect(this, room));
                this.Disconnect();
            }
        }