net.jini.discovery
Class OutgoingMulticastRequest
java.lang.Object
|
+--net.jini.discovery.OutgoingMulticastRequest
- public class OutgoingMulticastRequest
- extends java.lang.Object
Encapsulate the details of marshaling a multicast request into one or
more packets.
- See Also:
IncomingMulticastRequest
Field Summary |
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. |
Method Summary |
static java.net.DatagramPacket[] |
marshal(int responsePort,
java.lang.String[] groups,
ServiceID[] heard)
Marshal a multicast request into one or more datagram packets. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
minMaxPacketSize
protected static final int minMaxPacketSize
- The minimum size we allow for an outgoing packet.
maxPacketSize
protected static final int maxPacketSize
- The maximum size we allow for an outgoing packet. This may be
controlled using the net.jini.discovery.mtu system
property. The value cannot be less than 512. The default is 512.
protocolVersion
protected static final int protocolVersion
- The current version of the multicast announcement protocol.
OutgoingMulticastRequest
public OutgoingMulticastRequest()
marshal
public static java.net.DatagramPacket[] marshal(int responsePort,
java.lang.String[] groups,
ServiceID[] heard)
throws java.io.IOException
- Marshal a multicast request into one or more datagram packets.
These packets are guaranteed to contain, between them, all of
the groups in which the requestor is interested. However, the
set of ServiceIDs from which the requestor has heard may be
incomplete.
The datagram packets returned will have been initialized for
sending to the appropriate multicast address and UDP port.
- Parameters:
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 heard- Returns:
- an array of datagram packets, which will always
contains at least one member
- Throws:
- java.io.IOException - an error occurred during marshaling
Copyright © 1999 Sun Microsystems, Inc. All rights reserved