SunSPOT API V3.0


com.sun.spot.peripheral
Interface IMultipleHopConnection

All Known Subinterfaces:
RadiogramConnection
All Known Implementing Classes:
RadiogramConnImpl

public interface IMultipleHopConnection

Connections that implement IMultipleHopConnection support adjustment of the number of hops between nodes that messages can make.


Method Summary
 int getMaxBroadcastHops()
          returns the maximum number of mesh hops broadcasts sent on this connection will traverse
 void setMaxBroadcastHops(int hops)
          change the number of mesh hops a broadcast packet may take
 

Method Detail

setMaxBroadcastHops

void setMaxBroadcastHops(int hops)
change the number of mesh hops a broadcast packet may take

Parameters:
hops - the new number of mesh hops a packet will traverse

getMaxBroadcastHops

int getMaxBroadcastHops()
returns the maximum number of mesh hops broadcasts sent on this connection will traverse

Returns:
the number of mesh hops a packet will traverse

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.