Пример #1
0
        public PeerRadio(RadioSystem sys, IPEndPoint ipend) : base(sys, ipend)
        {
            this.sys.client.GotPeerRegisterReply  += Client_GotPeerRegisterReply;
            this.sys.client.GetPeerKeepAliveReply += Client_GetPeerKeepAliveReply;
            //Start keep alive
            Packet pkt = new PeerKeepAliveRequest(sys.ID);

            this.SendPacket(pkt);
        }
Пример #2
0
 public IPRadio(RadioSystem sys, IPEndPoint endpoint) : base()
 {
     this.sys = sys;
     this.ep  = endpoint;
     this.sys.client.GotUserPacket += new PacketHandler(this.HandleUserPacket);
 }
Пример #3
0
 public MasterRadio(RadioSystem sys, IPEndPoint ipend) : base(sys, ipend)
 {
     this.sys.client.GotRegistrationReply += new PacketHandler(this.HandleRegistrationPacket);
     sys.SendRegistrationPacket(ipend);
 }