josx.rcxcomm
Class RCXLNPAddressingPort
java.lang.Object
josx.rcxcomm.RCXAbstractPort
josx.rcxcomm.RCXLNPAddressingPort
- public class RCXLNPAddressingPort
- extends RCXAbstractPort
RCXLNPAddressingPort provides an interface similar to java.net.Socket
Adapted from original code created by the LEGO3 Team at DTU-IAU
This version of RCXPort supports the Lego Network protocol (LNP)
addressing layer. This supports point-to-point connections.
A single byte (for each) specifies the source and destination.
Usually the most significant 4-bites specifies the host, and the least
significant 4 bits specifies the port. This version only supports a single
active port per host. You can use this port for point-to-point communication
between specific RCXs, or between a PC and a specific RCX. The LNP Integrity
layer is used to ensures that packets are not corrupted, but they are not
guarnteed to get through. A three layer protocol stack is used. consising
of LNPAdressingHandler, LNPIntegrityHandler and LNPHandler.
RCXLNPAddressingPort
public RCXLNPAddressingPort(byte source,
byte dest)
throws IOException
RCXLNPAddressingPort
public RCXLNPAddressingPort(String port,
byte source,
byte dest)
throws IOException