java.lang.Object
org.refcodes.p2p.alt.serial.SerialPeerProxy
- All Implemented Interfaces:
SerialPeerRouter
,org.refcodes.p2p.PeerProxy<Integer,
,SerialP2PHeader, SerialP2PTail, SerialP2PMessage> org.refcodes.p2p.PeerRouter<Integer,
SerialP2PHeader, SerialP2PTail, SerialP2PMessage>
public class SerialPeerProxy
extends Object
implements org.refcodes.p2p.PeerProxy<Integer,SerialP2PHeader,SerialP2PTail,SerialP2PMessage>, SerialPeerRouter
The
SerialPeerProxy
implements a PeerProxy
optimized for
local area microcontroller wiring (networks) and microcontroller memory
layout using serial Port
instances.-
Field Summary
Modifier and TypeFieldDescriptionprotected org.refcodes.serial.ext.handshake.HandshakePortController<?>
-
Method Summary
Modifier and TypeMethodDescriptionint
getHopCount
(Integer aLocator, Integer[] aHops) void
sendMessage
(SerialP2PMessage aMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.p2p.PeerRouter
getHopCount
-
Field Details
-
_port
protected org.refcodes.serial.ext.handshake.HandshakePortController<?> _port
-
-
Method Details
-
getHopCount
- Specified by:
getHopCount
in interfaceorg.refcodes.p2p.PeerRouter<Integer,
SerialP2PHeader, SerialP2PTail, SerialP2PMessage> - Throws:
IOException
-
sendMessage
public void sendMessage(SerialP2PMessage aMessage) throws org.refcodes.p2p.NoSuchDestinationException, IOException - Specified by:
sendMessage
in interfaceorg.refcodes.p2p.PeerRouter<Integer,
SerialP2PHeader, SerialP2PTail, SerialP2PMessage> - Throws:
org.refcodes.p2p.NoSuchDestinationException
IOException
-