Interface for holding all constants related to Network Adapter communications.
This interface is used by both NetAdapterHost and the NetAdapter. In
addition, the common utility class Connection is defined here.
| Inner Class Summary | |
static class |
NetAdapterConstants.Connection
An inner utility class for coupling Socket with I/O streams |
| Field Summary | |
static boolean |
BUFFERED_OUTPUT
Indicates whether or not to buffer the output (probably always true!) |
static byte |
CMD_BEGINEXCLUSIVE
|
static byte |
CMD_CANBREAK
|
static byte |
CMD_CANDELIVERPOWER
|
static byte |
CMD_CANDELIVERSMARTPOWER
|
static byte |
CMD_CANFLEX
|
static byte |
CMD_CANHYPERDRIVE
|
static byte |
CMD_CANOVERDRIVE
|
static byte |
CMD_CANPROGRAM
|
static byte |
CMD_CLOSECONNECTION
|
static byte |
CMD_DATABLOCK
|
static byte |
CMD_ENDEXCLUSIVE
|
static byte |
CMD_EXCLUDEFAMILY
|
static byte |
CMD_FINDFIRSTDEVICE
|
static byte |
CMD_FINDNEXTDEVICE
|
static byte |
CMD_GETADDRESS
|
static byte |
CMD_GETBIT
|
static byte |
CMD_GETBLOCK
|
static byte |
CMD_GETBYTE
|
static byte |
CMD_GETSPEED
|
static byte |
CMD_PINGCONNECTION
|
static byte |
CMD_PUTBIT
|
static byte |
CMD_PUTBYTE
|
static byte |
CMD_RESET
|
static byte |
CMD_SETNORESETSEARCH
|
static byte |
CMD_SETPOWERDURATION
|
static byte |
CMD_SETPOWERNORMAL
|
static byte |
CMD_SETPROGRAMPULSEDURATION
|
static byte |
CMD_SETSEARCHALLDEVICES
|
static byte |
CMD_SETSEARCHONLYALARMINGDEVICES
|
static byte |
CMD_SETSPEED
|
static byte |
CMD_STARTBREAK
|
static byte |
CMD_STARTPOWERDELIVERY
|
static byte |
CMD_STARTPROGRAMPULSE
|
static byte |
CMD_TARGETALLFAMILIES
|
static byte |
CMD_TARGETFAMILY
|
static boolean |
DEBUG
Debug message flag |
static String |
DEFAULT_MULTICAST_GROUP
Address for Multicast group for NetAdapter Datagram packets |
static int |
DEFAULT_MULTICAST_PORT
Default port for NetAdapter Datagram packets |
static int |
DEFAULT_PORT
Default port for NetAdapter TCP/IP connection |
static String |
DEFAULT_SECRET
default secret for authentication with the server |
static NetAdapterConstants.Connection |
EMPTY_CONNECTION
instance for an empty connection, basically it's a NULL object that's safe to synchronize on. |
static byte |
RET_FAILURE
|
static byte |
RET_SUCCESS
|
static int |
versionUID
version UID, used to detect incompatible host |
| Field Detail |
public static final boolean DEBUG
public static final int versionUID
public static final boolean BUFFERED_OUTPUT
public static final int DEFAULT_PORT
public static final String DEFAULT_SECRET
public static final String DEFAULT_MULTICAST_GROUP
public static final int DEFAULT_MULTICAST_PORT
public static final byte RET_SUCCESS
public static final byte RET_FAILURE
public static final byte CMD_CLOSECONNECTION
public static final byte CMD_PINGCONNECTION
public static final byte CMD_RESET
public static final byte CMD_PUTBIT
public static final byte CMD_PUTBYTE
public static final byte CMD_GETBIT
public static final byte CMD_GETBYTE
public static final byte CMD_GETBLOCK
public static final byte CMD_DATABLOCK
public static final byte CMD_SETPOWERDURATION
public static final byte CMD_STARTPOWERDELIVERY
public static final byte CMD_SETPROGRAMPULSEDURATION
public static final byte CMD_STARTPROGRAMPULSE
public static final byte CMD_STARTBREAK
public static final byte CMD_SETPOWERNORMAL
public static final byte CMD_SETSPEED
public static final byte CMD_GETSPEED
public static final byte CMD_BEGINEXCLUSIVE
public static final byte CMD_ENDEXCLUSIVE
public static final byte CMD_FINDFIRSTDEVICE
public static final byte CMD_FINDNEXTDEVICE
public static final byte CMD_GETADDRESS
public static final byte CMD_SETSEARCHONLYALARMINGDEVICES
public static final byte CMD_SETNORESETSEARCH
public static final byte CMD_SETSEARCHALLDEVICES
public static final byte CMD_TARGETALLFAMILIES
public static final byte CMD_TARGETFAMILY
public static final byte CMD_EXCLUDEFAMILY
public static final byte CMD_CANBREAK
public static final byte CMD_CANDELIVERPOWER
public static final byte CMD_CANDELIVERSMARTPOWER
public static final byte CMD_CANFLEX
public static final byte CMD_CANHYPERDRIVE
public static final byte CMD_CANOVERDRIVE
public static final byte CMD_CANPROGRAM
public static final NetAdapterConstants.Connection EMPTY_CONNECTION