MembershipKey
Class MembershipKey
- java.lang.Object
-
- java.nio.channels.MembershipKey
public abstract class MembershipKey extends Object
A token representing the membership of an Internet Protocol (IP) multicast group.
A membership key may represent a membership to receive all datagrams sent to the group, or it may be source-specific, meaning that it represents a membership that receives only datagrams from a specific source address. Whether or not a membership key is source-specific may be determined by invoking its sourceAddress
method.
A membership key is valid upon creation and remains valid until the membership is dropped by invoking the 登录查看完整内容