|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--josx.rcxcomm.PacketHandler | +--josx.rcxcomm.LNPHandler
A Packet handler that implements the outer LNP packet format. It uses LLC to send and receive LNP packets.
Field Summary |
Fields inherited from class josx.rcxcomm.PacketHandler |
lowerHandler |
Constructor Summary | |
LNPHandler()
Creates an LNP packet handler and initializes LLC |
Method Summary | |
boolean |
isAddressing()
Test if last received packet is addressing (or integrity) |
boolean |
isPacketAvailable()
Check if a packet is available |
int |
receivePacket(byte[] buffer)
Receive a packet. |
boolean |
sendPacket(byte[] packet,
int len)
Send a packet. |
Methods inherited from class josx.rcxcomm.PacketHandler |
close, getError, isAckAvailable, open, receiveAck, reset, setListen |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
public LNPHandler()
Method Detail |
public boolean isAddressing()
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 receive 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 |