Example #1
0
        void c_ClientChannelRequestInfo(object sender, ClientChannelRequestEventArgs e)
        {
            if (ClientChannelRequestInfo != null)
                ClientChannelRequestInfo(sender, e);

            Client c = (Client)sender;
            ChannelRequest cr = e.ChannelRequestDetails;

            foreach (ChannelInfo ci in channelInfos)
            {
                byte[] bufferChannelList = PacketManager.SendChannel(ci, channelInfos.Length);
                c.Send(bufferChannelList);
            }

            byte[] bufferChannelStatus = PacketManager.SendChannelStatus();
            c.Send(bufferChannelStatus);
        }
Example #2
0
        void c_ClientChannelRequestInfo(object sender, ClientChannelRequestEventArgs e)
        {
            if (ClientChannelRequestInfo != null)
            {
                ClientChannelRequestInfo(sender, e);
            }

            Client         c  = (Client)sender;
            ChannelRequest cr = e.ChannelRequestDetails;

            foreach (ChannelInfo ci in channelInfos)
            {
                byte[] bufferChannelList = PacketManager.SendChannel(ci, channelInfos.Length);
                c.Send(bufferChannelList);
            }


            byte[] bufferChannelStatus = PacketManager.SendChannelStatus();
            c.Send(bufferChannelStatus);
        }