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); }
public IPRadio(RadioSystem sys, IPEndPoint endpoint) : base() { this.sys = sys; this.ep = endpoint; this.sys.client.GotUserPacket += new PacketHandler(this.HandleUserPacket); }
public MasterRadio(RadioSystem sys, IPEndPoint ipend) : base(sys, ipend) { this.sys.client.GotRegistrationReply += new PacketHandler(this.HandleRegistrationPacket); sys.SendRegistrationPacket(ipend); }