public class OutgoingMulticastRequest extends Object
IncomingMulticastRequest| Modifier and Type | Field and Description | 
|---|---|
| protected static int | minMaxPacketSizeThe minimum size we allow for an outgoing packet. | 
| protected static int | protocolVersionThe current version of the multicast announcement protocol. | 
| Constructor and Description | 
|---|
| OutgoingMulticastRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| static DatagramPacket[] | marshal(int responsePort,
       String[] groups,
       ServiceID[] heard)Using the default maximum packet size, marshal a multicast request
 into one or more datagram packets. | 
| static DatagramPacket[] | marshal(int responsePort,
       String[] groups,
       ServiceID[] heard,
       int maxPacketSize)Using the given maximum packet size, marshal a multicast request
 into one or more datagram packets. | 
protected static final int minMaxPacketSize
protected static final int protocolVersion
public static DatagramPacket[] marshal(int responsePort, String[] groups, ServiceID[] heard) throws IOException
The datagram packets returned will have been initialized for sending to the appropriate multicast address and UDP port.
responsePort - the port to which respondents should
                      connect in order to start unicast discoverygroups - the set of groups in which the requestor is
                      interestedheard - the set of ServiceIDs from which the requestor has
                      already heardIOException - an error occurred during marshalling.IllegalArgumentException - when the number and length of the
                                     group names to marshal, relative
                                     to the value of the default packet
                                     size maximum, is too large.public static DatagramPacket[] marshal(int responsePort, String[] groups, ServiceID[] heard, int maxPacketSize) throws IOException
The datagram packets returned will have been initialized for sending to the appropriate multicast address and UDP port.
responsePort - the port to which respondents should
                      connect in order to start unicast discoverygroups - the set of groups in which the requestor is
                      interestedheard - the set of ServiceIDs from which the requestor has
                      already heardmaxPacketSize - the maximum size to allow for an outgoing packetIOException - an error occurred during marshallingIllegalArgumentException - when the value of the 
                                     maxPacketSize argument
                                     is less than the default packet
                                     size maximum; or when the number
                                     and length of the group names to
                                     marshal, relative to the value of
                                     the maxPacketSize
                                     argument, is too large.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.