| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | MembershipKeyImpl.
MembershipKey will additional context for IPv4 membership |
| pack-priv static class | MembershipKeyImpl.
MembershipKey will additional context for IPv6 membership |
| Modifier and Type | Field and Description |
|---|---|
| private HashSet | |
| private final MulticastChannel | |
| private final InetAddress | |
| private final NetworkInterface | |
| private volatile boolean | |
| private final InetAddress | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private | MembershipKeyImpl(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source)
|
| Modifier and Type | Method and Description |
|---|---|
| public MembershipKey | block(InetAddress toBlock)
Implements abstract java. Block multicast datagrams from the given source address. |
| public MulticastChannel | channel()
Implements abstract java. Returns the channel for which this membership key was created. |
| public void | |
| public InetAddress | group()
Implements abstract java. Returns the multicast group for which this membership key was created. |
| pack-priv void | |
| public boolean | isValid()
Implements abstract java. Tells whether or not this membership is valid. |
| public NetworkInterface | networkInterface()
Implements abstract java. Returns the network interface for which this membership key was created. |
| public InetAddress | sourceAddress()
Implements abstract java. Returns the source address if this membership key is source-specific,
or |
| public String | |
| public MembershipKey | unblock(InetAddress toUnblock)
Implements abstract java. Unblock multicast datagrams from the given source address that was
previously blocked using the |
| blockedSet | back to summary |
|---|---|
| private HashSet<InetAddress> blockedSet | |
| ch | back to summary |
|---|---|
| private final MulticastChannel ch | |
| group | back to summary |
|---|---|
| private final InetAddress group | |
| interf | back to summary |
|---|---|
| private final NetworkInterface interf | |
| invalid | back to summary |
|---|---|
| private volatile boolean invalid | |
| source | back to summary |
|---|---|
| private final InetAddress source | |
| stateLock | back to summary |
|---|---|
| private final Object stateLock | |
| MembershipKeyImpl | back to summary |
|---|---|
| private MembershipKeyImpl(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source) | |
| block | back to summary |
|---|---|
| public MembershipKey block(InetAddress toBlock) throws IOException Implements abstract java. Doc from java. Block multicast datagrams from the given source address. If this membership key is not source-specific, and the underlying operating system supports source filtering, then this method blocks multicast datagrams from the given source address. If the given source address is already blocked then this method has no effect. After a source address is blocked it may still be possible to receive datagrams from that source. This can arise when datagrams are waiting to be received in the socket's receive buffer.
| |
| channel | back to summary |
|---|---|
| public MulticastChannel channel() Implements abstract java. Doc from java. Returns the channel for which this membership key was created. This
method will continue to return the channel even after the membership
becomes
| |
| drop | back to summary |
|---|---|
| public void drop() Implements abstract java. Doc from java. Drop membership. If the membership key represents a membership to receive all datagrams then the membership is dropped and the channel will no longer receive any datagrams sent to the group. If the membership key is source-specific then the channel will no longer receive datagrams sent to the group from that source address. After membership is dropped it may still be possible to receive
datagrams sent to the group. This can arise when datagrams are waiting to
be received in the socket's receive buffer. After membership is dropped
then the channel may Upon return, this membership object will be | |
| group | back to summary |
|---|---|
| public InetAddress group() Implements abstract java. Doc from java. Returns the multicast group for which this membership key was created.
This method will continue to return the group even after the membership
becomes
| |
| invalidate | back to summary |
|---|---|
| pack-priv void invalidate() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements abstract java. Doc from java. Tells whether or not this membership is valid. A multicast group membership is valid upon creation and remains
valid until the membership is dropped by invoking the | |
| networkInterface | back to summary |
|---|---|
| public NetworkInterface networkInterface() Implements abstract java. Doc from java. Returns the network interface for which this membership key was created.
This method will continue to return the network interface even after the
membership becomes
| |
| sourceAddress | back to summary |
|---|---|
| public InetAddress sourceAddress() Implements abstract java. Doc from java. Returns the source address if this membership key is source-specific,
or
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unblock | back to summary |
|---|---|
| public MembershipKey unblock(InetAddress toUnblock) Implements abstract java. Doc from java. Unblock multicast datagrams from the given source address that was
previously blocked using the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | Type4(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source, int groupAddress, int interfAddress, int sourceAddress)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| groupAddress | back to summary |
|---|---|
| private final int groupAddress | |
| interfAddress | back to summary |
|---|---|
| private final int interfAddress | |
| sourceAddress | back to summary |
|---|---|
| private final int sourceAddress | |
| Type4 | back to summary |
|---|---|
| pack-priv Type4(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source, int groupAddress, int interfAddress, int sourceAddress) | |
| groupAddress | back to summary |
|---|---|
| pack-priv int groupAddress() | |
| interfaceAddress | back to summary |
|---|---|
| pack-priv int interfaceAddress() | |
| source | back to summary |
|---|---|
| pack-priv int source() | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | Type6(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source, byte[] groupAddress, int index, byte[] sourceAddress)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv byte[] |
| groupAddress | back to summary |
|---|---|
| private final byte[] groupAddress | |
| index | back to summary |
|---|---|
| private final int index | |
| sourceAddress | back to summary |
|---|---|
| private final byte[] sourceAddress | |
| Type6 | back to summary |
|---|---|
| pack-priv Type6(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source, byte[] groupAddress, int index, byte[] sourceAddress) | |
| groupAddress | back to summary |
|---|---|
| pack-priv byte[] groupAddress() | |
| index | back to summary |
|---|---|
| pack-priv int index() | |
| source | back to summary |
|---|---|
| pack-priv byte[] source() | |