|
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.IP
public class IP
The main IP stack class
| Field Summary | |
|---|---|
static byte[] |
ALL_NODES
|
static byte[] |
ALL_ROUTERS
|
static byte |
HEADER_ICMP4
|
static byte |
HEADER_ICMP6
|
static byte |
HEADER_TCP
|
static byte |
HEADER_UDP
|
static byte[] |
UNSPECIFIED
|
| Fields inherited from interface com.sun.spot.service.IService |
|---|
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
| Method Summary | |
|---|---|
void |
addAddress(byte[] address)
|
void |
addLocalRoute(byte[] dest,
int prefixlen,
byte[] me,
IIPNetworkInterface iface)
|
void |
deregisterInterface(IIPNetworkInterface iface)
|
protected void |
dumpRoutingTable()
A method that asks IP to dump the active IPv6 routing table. |
protected void |
dumpState()
|
protected int |
generateFlowLabel()
Generates a value suitable for use as a flow label |
IIPNetworkInterface |
getDefaultInterface()
|
static IP |
getInstance()
Return this IP stack singleton |
IIPNetworkInterface |
getInterface(String name)
|
byte[] |
getMyAddress()
Returns a global IPv6 address for this object. |
static short |
getRouteMSS(byte[] remote_ip)
|
String |
getServiceName()
Return the name of this service |
Timer |
getTimer()
|
boolean |
isRouter()
|
boolean |
isRunning()
Return whether the service is currently running. |
boolean |
isStopped()
|
static void |
main(String[] args)
This main() is invoked by the system startup if the appropriate manifest property is set. |
void |
processIncomingPacket(IPv6Packet psix,
IIPNetworkInterface inface)
Process incoming packets that the IPNetworkInterface layer underneath believes to be IPv6 |
void |
registerInterface(IIPNetworkInterface iface,
boolean d)
|
void |
send(IPv6Packet p)
The method is used by higher level protocols to send a properly constructed IPv6 packet. |
boolean |
start()
Start the service, and return whether successful. |
| Methods inherited from class com.sun.spot.service.BasicService |
|---|
getEnabled, getStatus, pause, resume, setEnabled, setServiceName, 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 byte[] ALL_NODES
public static final byte[] ALL_ROUTERS
public static final byte[] UNSPECIFIED
public static final byte HEADER_ICMP4
public static final byte HEADER_TCP
public static final byte HEADER_UDP
public static final byte HEADER_ICMP6
| Method Detail |
|---|
public boolean start()
IService
start in interface IServicestart in class BasicServicepublic boolean isRunning()
IService
isRunning in interface IServiceisRunning in class BasicServicepublic boolean isStopped()
public boolean isRouter()
public static IP getInstance()
public Timer getTimer()
public void deregisterInterface(IIPNetworkInterface iface)
public void registerInterface(IIPNetworkInterface iface,
boolean d)
public IIPNetworkInterface getDefaultInterface()
public IIPNetworkInterface getInterface(String name)
public void addAddress(byte[] address)
public void addLocalRoute(byte[] dest,
int prefixlen,
byte[] me,
IIPNetworkInterface iface)
public String getServiceName()
getServiceName in interface IServicegetServiceName in class BasicServicepublic static short getRouteMSS(byte[] remote_ip)
remote_ip - a destination IP address
public byte[] getMyAddress()
protected int generateFlowLabel()
public void send(IPv6Packet p)
throws NoRouteToHostException,
NetworkException
p - a properly formated IPv6 packet
NoRouteException
NoRouteToHostException
NetworkException
public void processIncomingPacket(IPv6Packet psix,
IIPNetworkInterface inface)
psix - An IPv6 Packetinface - The interface object on which the packet arrivedprotected void dumpRoutingTable()
protected void dumpState()
public static void main(String[] args)
args - Standard startup arguments.
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||