SunSPOT API V3.0


com.sun.spot.peripheral.radio
Interface IRadiogramProtocolManager

All Superinterfaces:
IRadioProtocolManager
All Known Implementing Classes:
ProxyRadiogramProtocolManager, RadiogramProtocolManager

public interface IRadiogramProtocolManager
extends IRadioProtocolManager

A general purpose IProtocolManager designed to separate incoming radio packets into separate queues based on a unique identifying port number in the range 0-255, and manage them as unreliable datagrams.

Currently underpins com.sun.spot.io.j2me.radiogram.RadiogramConnection


Field Summary
static int BROADCAST
           
static int DATA_OFFSET
          The offset into data buffers at which data starts
static int SERVER
           
 
Fields inherited from interface com.sun.spot.peripheral.radio.IRadioProtocolManager
FIRST_USER_PORT, INPUT, OUTPUT, PORT_OFFSET
 
Method Summary
 ConnectionID addBroadcastConnection(byte portNo)
          Register a broadcast connection
 ConnectionID addServerConnection(byte portNo)
          Register a server connection
 
Methods inherited from interface com.sun.spot.peripheral.radio.IRadioProtocolManager
addInputConnection, addOutputConnection, closeConnection, packetsAvailable, receivePacket, receivePacket, send
 

Field Detail

DATA_OFFSET

static final int DATA_OFFSET
The offset into data buffers at which data starts

See Also:
Constant Field Values

SERVER

static final int SERVER
See Also:
Constant Field Values

BROADCAST

static final int BROADCAST
See Also:
Constant Field Values
Method Detail

addServerConnection

ConnectionID addServerConnection(byte portNo)
Register a server connection

Parameters:
portNo - - port number to communicate over
Returns:
resultant ConnectionID

addBroadcastConnection

ConnectionID addBroadcastConnection(byte portNo)
Register a broadcast connection

Parameters:
portNo - - port number to communicate over
Returns:
resultant ConnectionID

SunSPOT API V3.0


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