|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.reliable.transport.lrmp.LRMPPacketSocket
An RMPacketSocket for the LRMP transport.
RMPacketSocket
Fields inherited from interface inria.net.lrmp.LrmpEventHandler |
END_OF_SEQUENCE, UNRECOVERABLE_SEQUENCE_ERROR |
Method Summary | |
void |
abort()
Abort the current connection. |
void |
close()
The close method shuts down the socket after flushing the transmit queue. |
java.net.InetAddress |
getInterface()
The getInterface method returns the InetAddress of the local port that data is transmitted on if other than the default. |
long |
getMaxDataRate()
Gets the current current value of maximum rate of data transmission in bytes/second. |
int |
getMaxLength()
Gets the maximum amount of data that can be sent in a DatagramPacket over this socket. |
RMStatistics |
getRMStatistics()
Returns the latest snapshot of the maintained Transport statistics block. |
TransportProfile |
getTransportProfile()
Return a copy of the transport profile this socket is using. |
void |
processData(LrmpPacket pack)
This method should only be used by LRMP. |
void |
processEvent(int event,
java.lang.Object obj)
This method should only be used by LRMP. |
java.net.DatagramPacket |
receive()
The receive method returns the next DatagramPacket. |
void |
send(java.net.DatagramPacket dp)
The send method transmits a DatagramPacket over the multicast connection. |
void |
setInterface(java.net.InetAddress ia)
Set the interface on which the data will be transmitted on. |
void |
setMaxDataRate(long maxDataRate)
Change the current data rate value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.net.InetAddress getInterface() throws java.net.SocketException
getInterface
in interface RMPacketSocket
com.sun.multicast.reliable.transport.RMPacketSocket
java.net.SocketException
- if a socket-related error occursUnsupportedException
- if the transport does not
support getting the interfaceRMException
- if a reliable-multicast-related exception occurspublic TransportProfile getTransportProfile()
getTransportProfile
in interface RMPacketSocket
public RMStatistics getRMStatistics() throws UnsupportedException
getRMStatistics
in interface RMPacketSocket
UnsupportedException
- when transport does not support this.public void setInterface(java.net.InetAddress ia) throws UnsupportedException
setInterface
in interface RMPacketSocket
ia
- the InetAddress of the interface to transmit data on.UnsupportedException
- always, since LRMP does not support this operationpublic void send(java.net.DatagramPacket dp) throws java.io.IOException
send
in interface RMPacketSocket
dp
- the DatagramPacket to be sent.java.io.IOException
- is raised if an error occurs sending the data.public java.net.DatagramPacket receive() throws java.io.IOException, SessionDoneException
receive
in interface RMPacketSocket
java.io.IOException
- is thrown if an I/O error occurspublic void abort()
abort
in interface RMPacketSocket
public void close()
close
in interface RMPacketSocket
public long getMaxDataRate()
public void setMaxDataRate(long maxDataRate) throws RMException
maxDataRate
- the rate in bytes/second to transmit data.RMException
- if a JRMS-related exception occurspublic int getMaxLength()
getMaxLength
in interface RMPacketSocket
public void processData(LrmpPacket pack)
processData
in interface LrmpEventHandler
inria.net.lrmp.LrmpEventHandler
pack
- the received data packet.public void processEvent(int event, java.lang.Object obj)
processEvent
in interface LrmpEventHandler
inria.net.lrmp.LrmpEventHandler
event
- the event type.data
- the event-dependent data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.