org.objectweb.jonathan.protocols.multicast_ip
Class MulticastIpProtocol
java.lang.Object
org.objectweb.jonathan.protocols.multicast_ip.MulticastIpProtocol
- Protocol
public class MulticastIpProtocol
The MulticastIpProtocol class is a protocol class encapsulating the
IP Multicast protocol. Each Session created by this class is dedicated to a
(IP multicast address, port) network endpoint.
A simple threading model is used: a thread is dedicated to
each Session created by MulticastIpProtocol.
Protocol
MulticastIpProtocol
public MulticastIpProtocol(MarshallerFactory marshaller_factory)
Build a new MulticastIpProtocol
marshaller_factory
- the MarshallerFactory used by the protocol to build
incoming messages
getMtu
public int getMtu()
Returns the MulticastIpProtocol MTU (maximum transmition unit). The upper
protocol must make sure to supply messages to MulticastIpProtocol whose size
does not exceed this MTU, otherwise messages will be truncated
- the MulticastIpProtocol MTU (maximum transmition unit)
newProtocolGraph
public ProtocolGraph newProtocolGraph(String address,
int port)
throws CommunicationException
Builds a new Protocol graph associated with an (IP multicast address,
port) pair
- the created graph
CommunicationException
- raised if the supplied parameters do not
correspond to a valid IP multicast address
newSessionIdentifier
public SessionIdentifier newSessionIdentifier(String address,
int port)
throws CommunicationException
Builds a new SessionIdentifier associated with an (IP multicast address,
port) pair
- the created SessionIdentifier
CommunicationException
- raised if the supplied parameters do not
correspond to a valid IP multicast address