|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.reliable.transport.tram.TRAMStreamSocket
The TRAMStreamSocket implements RMStreamSocket Interface. TRAMStreamSocket allows applications to send and receive data, set the interface over which data is to be sent, and close the socket after completion or to abort the connection before the session ends.
Constructor Summary | |
TRAMStreamSocket()
The TRAMStreamSocket Constructor. |
Method Summary | |
void |
abort()
Abort the current connection. |
void |
close()
The close method shuts down the socket after flushing the transmit queue. |
java.io.InputStream |
getInputStream()
The getInputStream method returns an InputStream object for this transport. |
java.net.InetAddress |
getInterface()
The getInterface method returns the InetAddress of the local port that data is transmitted on if other than the default. |
java.io.OutputStream |
getOutputStream()
The getOutputStream method returns an OutputStream object for sending data over the multicast connection. |
RMStatistics |
getRMStatistics()
This method returns a clone(copy) of the Statistics block in use in this socket. |
TransportProfile |
getTransportProfile()
This method returns a clone(copy) of the TransportProfile in use in this socket. |
void |
setInterface(java.net.InetAddress ia)
Sets the interface on which the data will be transmitted on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TRAMStreamSocket()
Method Detail |
public java.net.InetAddress getInterface() throws java.net.SocketException
getInterface
in interface RMStreamSocket
com.sun.multicast.reliable.transport.RMStreamSocket
java.net.SocketException
- if an error occursUnsupportedException
- if the transport does not
support getting the interfaceRMException
- if a reliable-multicast-related exception occurspublic java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface RMStreamSocket
com.sun.multicast.reliable.transport.RMStreamSocket
UnsupportedException
- if the transport does not
support getting the interfaceRMException
- if a reliable-multicast-related exception occurspublic java.io.OutputStream getOutputStream()
getOutputStream
in interface RMStreamSocket
com.sun.multicast.reliable.transport.RMStreamSocket
UnsupportedException
- if the transport does not
support getting the interfaceRMException
- if a reliable-multicast-related exception occurspublic void setInterface(java.net.InetAddress ia) throws java.net.SocketException
setInterface
in interface RMStreamSocket
ia
- the InetAddress of the interface to transmit data on.public TransportProfile getTransportProfile()
getTransportProfile
in interface RMStreamSocket
public RMStatistics getRMStatistics()
getRMStatistics
in interface RMStreamSocket
public void abort()
abort
in interface RMStreamSocket
public void close()
close
in interface RMStreamSocket
|
|||||||||
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.