public static SetBcstVersion ( IAtomCollection bcst ) : void | ||
bcst | IAtomCollection | |
Результат | void |
private Atom CreateBroadcastPacket(BroadcastGroup group, Atom packet) { var bcst = new AtomCollection(); bcst.SetBcstFrom(PeerCast.SessionID); bcst.SetBcstGroup(group); bcst.SetBcstHops(0); bcst.SetBcstTTL(11); PCPVersion.SetBcstVersion(bcst); bcst.SetBcstChannelID(Channel.ChannelID); bcst.Add(packet); return(new Atom(Atom.PCP_BCST, bcst)); }
private Atom CreateChannelBcst(Channel channel, bool playing) { var bcst = new AtomCollection(); bcst.SetBcstTTL(1); bcst.SetBcstHops(0); bcst.SetBcstFrom(PeerCast.SessionID); PCPVersion.SetBcstVersion(bcst); bcst.SetBcstChannelID(channel.ChannelID); bcst.SetBcstGroup(BroadcastGroup.Root); PostChannelInfo(bcst, channel); PostHostInfo(bcst, channel, playing); return(new Atom(Atom.PCP_BCST, bcst)); }