|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hp.infrared.UltraSocket
This class implements a connectionless broadcast socket using Ultra protocol.
UltraPacket
Constructor Summary | |
UltraSocket(int pid)
Constructs an ultra socket with the specified protocol id |
Method Summary | |
void |
close()
Closes this ultra socket. |
void |
receive(UltraPacket pkt)
Receives an ultra packet from this socket. |
void |
send(UltraPacket pkt)
Sends an ultra packet from this socket. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public UltraSocket(int pid) throws java.net.SocketException
pid
- the ultra protocol idMethod Detail |
public void close()
public void receive(UltraPacket pkt) throws java.io.IOException
pkt
- the packet receivedpublic void send(UltraPacket pkt) throws java.io.IOException
pkt
- the ultra packet
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |