|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.net.DatagramSocket
|
+--java.net.MulticastSocket
|
+--com.dalsemi.tininet.TINIMulticastSocket
This subclass of is a faster and memory conserving version
of MulticastSocket
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 |
public TINIMulticastSocket()
throws java.io.IOException
TINIMulticastSocket and binds
it to any available port on the local host machine.
public TINIMulticastSocket(int port)
throws java.io.IOException
TINIMulticastSocket and binds
it to the specified port on the local host machine.port - local port to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||