| 
 | ||||||||||
| 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.LLCReliableHandler
public class LLCReliableHandler
A Packet handler that guarantees reliable delivery using checksums, acks, and a single bit sequence number.
| Constructor Summary | |
|---|---|
| LLCReliableHandler(PacketHandler handler) | |
| Method Summary | |
|---|---|
|  boolean | isPacketAvailable()Check if a packet is available. | 
|  int | receivePacket(byte[] buffer)Receive a packet. | 
|  void | reset()Reset sequence numbers. | 
|  boolean | sendPacket(byte[] packet,
           int len)Send a packet. | 
| Methods inherited from class rcx.josx.rcxcomm.PacketHandler | 
|---|
| close, getError, isAckAvailable, open, receiveAck, setListen | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LLCReliableHandler(PacketHandler handler)
| Method Detail | 
|---|
public void reset()
reset in class PacketHandler
public boolean sendPacket(byte[] packet,
                          int len)
sendPacket in class PacketHandlerpacket - the bytes to sendlen - the number of bytes to send
public int receivePacket(byte[] buffer)
receivePacket in class PacketHandlerbuffer - 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 | |||||||||