|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.resources.Resource
com.sun.spot.service.BasicService
com.sun.spot.ipv6.LowPanUncompressed
public class LowPanUncompressed
An implementation of RFC4944 without header compression
| Field Summary | |
|---|---|
static boolean |
debug
|
byte[] |
myLocalSolicited
|
| Fields inherited from interface com.sun.spot.service.IService |
|---|
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
| Method Summary | |
|---|---|
int |
getDefaultHops()
Returns the number of lowpan hops an IP broadcast packet is allowed to traverse |
byte[] |
getGlobalAddress()
Return the IPv6 address associated with this interface |
static LowPanUncompressed |
getInstance()
Return this LowPanUncompressed singleton |
String |
getInterfaceName()
returns the name associated with this interface |
byte[] |
getLinkLayerAddress()
returns the media specific link layer address |
byte[] |
getLinkLocalAddress()
Return the IPv6 link address associated with this interface |
byte[] |
getLocalSolicitedAddress()
|
NeighborManager |
getNeighborManager()
returns the neighbor manager associated with this interface |
String |
getServiceName()
Gets the name of this service |
byte[] |
getSubnetPrefix()
Returns a byte array representation of the IPv6 subnet prefix for this interface |
int |
getSubnetSize()
|
void |
processIncomingData(byte[] payload,
LowPanHeaderInfo headerInfo)
Called whenever data is received that is addressed to this IProtocolManager. |
void |
sendPacket(IPv6Packet p)
Send a packet via this interface to a node we expect to be on this link |
void |
sendPacket(IPv6Packet p,
IPRouteEntry re)
Send an IP packet using this interface |
void |
setDefaultHops(int hops)
Sets the number of mesh hops the low pan packet will be allowed to traverse |
void |
setSubnetPrefix(byte[] prefix,
int size)
Sets the IPv6 subnet information for this link |
protected void |
start(IP stack)
|
| Methods inherited from class com.sun.spot.service.BasicService |
|---|
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop |
| Methods inherited from class com.sun.spot.resources.Resource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Field Detail |
|---|
public static final boolean debug
public byte[] myLocalSolicited
| Method Detail |
|---|
protected void start(IP stack)
public static LowPanUncompressed getInstance()
public int getDefaultHops()
public void setDefaultHops(int hops)
hops - the number of allowable mesh hops for IP broadcast packets
public void setSubnetPrefix(byte[] prefix,
int size)
setSubnetPrefix in interface IIPNetworkInterfaceprefix - The IPv6 prefix associated with the interafcesize - The number of bits in the network portion (netmask bits)public String getInterfaceName()
getInterfaceName in interface IIPNetworkInterface
public void sendPacket(IPv6Packet p)
throws NetworkException
sendPacket in interface IIPNetworkInterfacep - A properly formatted IPv6 packet
NetworkException
public void sendPacket(IPv6Packet p,
IPRouteEntry re)
throws NetworkException
sendPacket in interface IIPNetworkInterfacep - A properly formated IPv6 packet to sendre - A route entry that contains the next hop information
NetworkExceptionpublic byte[] getGlobalAddress()
IIPNetworkInterface
getGlobalAddress in interface IIPNetworkInterfacepublic int getSubnetSize()
getSubnetSize in interface IIPNetworkInterface
public void processIncomingData(byte[] payload,
LowPanHeaderInfo headerInfo)
IProtocolManagerIProtocolManager.
IProtocolManagers should do as little processing as possible inside
this method, to avoid blocking other INewProtocolManagers from receiving
their packets. Typically an IProtocolManager will queue received
packets for later dispatch to applications.
processIncomingData in interface IProtocolManagerpublic byte[] getLinkLocalAddress()
IIPNetworkInterface
getLinkLocalAddress in interface IIPNetworkInterfacepublic byte[] getLocalSolicitedAddress()
getLocalSolicitedAddress in interface IIPNetworkInterfacepublic byte[] getLinkLayerAddress()
IIPNetworkInterface
getLinkLayerAddress in interface IIPNetworkInterfacepublic byte[] getSubnetPrefix()
getSubnetPrefix in interface IIPNetworkInterfacepublic NeighborManager getNeighborManager()
getNeighborManager in interface IIPNetworkInterfacepublic String getServiceName()
getServiceName in interface IServicegetServiceName in class BasicService
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||