com.dalsemi.tininet
Class TINIMulticastSocket

java.lang.Object
  |
  +--java.net.DatagramSocket
        |
        +--java.net.MulticastSocket
              |
              +--com.dalsemi.tininet.TINIMulticastSocket

public class TINIMulticastSocket
extends java.net.MulticastSocket

This subclass of MulticastSocket is a faster and memory conserving version of java.net.MulticastSocket. TINIMulticastSocket is a direct drop-in replacement. The receive() method is the only method behaving slightly differently. Unlike its superclass, TINIMulticastSocket.receive(p) does not allocate a new InetAddress object when the MulticastPacket p's address is not null.


Constructor Summary
TINIMulticastSocket()
          Constructs a TINIMulticastSocket and binds it to any available port on the local host machine.
TINIMulticastSocket(int port)
          Constructs a TINIMulticastSocket and binds it to the specified port on the local host machine.
 
Methods inherited from class java.net.MulticastSocket
getInterface, getTTL, joinGroup, leaveGroup, send, setInterface, setTTL
 
Methods inherited from class java.net.DatagramSocket
close, getLocalAddress, getLocalPort, getSoTimeout, receive, send, setSoTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TINIMulticastSocket

public TINIMulticastSocket()
                    throws java.io.IOException
Constructs a TINIMulticastSocket and binds it to any available port on the local host machine.
Throws:
java.io.IOException - if the socket could not be opened, or the socket bind operation failed.

TINIMulticastSocket

public TINIMulticastSocket(int port)
                    throws java.io.IOException
Constructs a TINIMulticastSocket and binds it to the specified port on the local host machine.
Parameters:
port - local port to use.
Throws:
java.io.IOException - if the socket could not be opened, or the socket could not bind to the specified local port.


Also see:
o TINI 1.11 API, Optional Modules
o TINI Home Page
o 1-Wire API

Last update Fri Jan 24 12:06:43 CST 2003
Используются технологии uCoz