| java.lang.Object java.net.DatagramSocket seda.nbio.NonblockingDatagramSocket seda.nbio.NonblockingMulticastSocket
NonblockingMulticastSocket | public class NonblockingMulticastSocket extends NonblockingDatagramSocket (Code) | | NonblockingMulticastSocket provides non-blocking multicast datagram I/O.
NOTE: packets cannot be received on a socket once connect() is
called, due to the semantics of connect() for multicast sockets.
Instead, applications should generally use joinGroup(), and then
explicitly specify the group address as the destination in all the
outbound packets.
|
multicast_ttl | int multicast_ttl(Code) | | |
NonblockingMulticastSocket | public NonblockingMulticastSocket() throws IOException(Code) | | Create a NonblockingMulticastSocket bound to any available port.
|
NonblockingMulticastSocket | public NonblockingMulticastSocket(int port) throws IOException(Code) | | |
NonblockingMulticastSocket | public NonblockingMulticastSocket(int port, InetAddress laddr) throws IOException(Code) | | Create a NonblockingMulticastSocket bound to the given port and
the given local address.
|
getInterface | public InetAddress getInterface()(Code) | | Get the interface associated with this multicast socket
|
getTimeToLive | public int getTimeToLive() throws IOException(Code) | | get the multicast ttl
|
seeLocalMessages | public void seeLocalMessages(boolean state) throws IOException(Code) | | This sets the state of the IP_MULTICAST_LOOP option on the
underlying socket. If state==true, the socket will receive
packets it sends out. If false, it will not.
NOTE: The behavior of this is somewhat strange for two multicast
listeners on the same physical machine. Ideally, this should be
an incoming filter - each socket should throw out packets that it
sent out, and not deliver them to the application.
Unfortunately, this instead seems to be an outbound filter - all
packets sent out on a socket with IP_MULTICAST_LOOP turned off
will be invisible to all sockets on the local machine -
regardless of whether or not these other sockets have specified
IP_MULTICAST_LOOP=false.
|
setTimeToLive | public void setTimeToLive(int ttl) throws IOException(Code) | | set the time to live
|
Methods inherited from seda.nbio.NonblockingDatagramSocket | public synchronized void close()(Code)(Java Doc) public void connect(InetAddress address, int port) throws IllegalArgumentException(Code)(Java Doc) public void connect(String host, int port) throws UnknownHostException(Code)(Java Doc) public synchronized void disconnect()(Code)(Java Doc) public InetAddress getInetAddress()(Code)(Java Doc) public InetAddress getLocalAddress()(Code)(Java Doc) public int getLocalPort()(Code)(Java Doc) public int getPort()(Code)(Java Doc) public int getReceiveBufferSize() throws SocketException(Code)(Java Doc) public int getSendBufferSize() throws SocketException(Code)(Java Doc) public int nbReceive(DatagramPacket p) throws IOException(Code)(Java Doc) public int nbReceive(byte[] data, int offset, int length) throws IOException(Code)(Java Doc) public int nbSend(DatagramPacket p) throws IOException(Code)(Java Doc) public int nbSend(byte[] data, int offset, int length, InetAddress addr, int port) throws IOException(Code)(Java Doc) public int nbSend(byte[] data, int offset, int length) throws IOException(Code)(Java Doc) public void receive(DatagramPacket p) throws IOException(Code)(Java Doc) public void send(DatagramPacket p) throws IOException(Code)(Java Doc) public void setReceiveBufferSize(int size) throws SocketException(Code)(Java Doc) public void setSendBufferSize(int size) throws SocketException(Code)(Java Doc)
|
|
|