|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrcx.josx.rcxcomm.PacketHandler
rcx.josx.rcxcomm.LNPAddressingHandler
public class LNPAddressingHandler
Packet handler that implements LNP addressing.
Constructor Summary | |
---|---|
LNPAddressingHandler(PacketHandler handler)
|
Method Summary | |
---|---|
boolean |
isPacketAvailable()
Check if a packet is available |
void |
open(byte source,
byte destination)
Set the source and destination for this connection |
int |
receivePacket(byte[] buffer)
Receive a packet. |
boolean |
sendPacket(byte[] packet,
int len)
Send a packet, adding the source and destination addresses |
Methods inherited from class rcx.josx.rcxcomm.PacketHandler |
---|
close, getError, isAckAvailable, receiveAck, reset, setListen |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LNPAddressingHandler(PacketHandler handler)
Method Detail |
---|
public void open(byte source, byte destination)
open
in class PacketHandler
public boolean sendPacket(byte[] packet, int len)
sendPacket
in class PacketHandler
packet
- the bytes to sendlen
- the number of bytes to send
public int receivePacket(byte[] buffer)
receivePacket
in class PacketHandler
buffer
- the buffer to rceive the packet into
public boolean isPacketAvailable()
isPacketAvailable
in class PacketHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |