public class OutgoingMulticastAnnouncement extends Object
IncomingMulticastAnnouncement
Modifier and Type | Field and Description |
---|---|
protected static int |
maxPacketSize
The maximum size we allow for an outgoing packet.
|
protected static int |
minMaxPacketSize
The minimum size we allow for an outgoing packet.
|
protected static int |
protocolVersion
The current version of the multicast announcement protocol.
|
Constructor and Description |
---|
OutgoingMulticastAnnouncement() |
Modifier and Type | Method and Description |
---|---|
static DatagramPacket[] |
marshal(ServiceID id,
LookupLocator loc,
String[] groups)
Marshal a multicast announcement into one or more datagram
packets.
|
protected static final int minMaxPacketSize
protected static final int maxPacketSize
protected static final int protocolVersion
public static DatagramPacket[] marshal(ServiceID id, LookupLocator loc, String[] groups) throws IOException
The datagram packets returned will have been initialized for sending to the appropriate multicast address and UDP port.
id
- the ServiceID we are announcingloc
- a LookupLocator that will allow unicast discovery of
the lookup service we are announcinggroups
- the groups of which the announced lookup service
is a memberIOException
- a problem occurred during marshalingCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.