BlowTorch
 All Classes Namespaces Files Functions Variables Enumerator Pages
Static Public Member Functions | Static Public Attributes | List of all members
com.offsetnull.bt.service.TC Class Reference

Static Public Member Functions

static String getByteName (final byte in)
 
static String decodeSUB (final byte[] in)
 
static String decodeIAC (final byte[] in)
 

Static Public Attributes

static final byte IAC = (byte) 0xFF
 
static final byte MXP = (byte) 0x5B
 
static final byte WILL = (byte) 0xFB
 
static final byte WONT = (byte) 0xFC
 
static final byte DO = (byte) 0xFD
 
static final byte DONT = (byte) 0xFE
 
static final byte SB = (byte) 0xFA
 
static final byte SE = (byte) 0xF0
 
static final byte SEND = 0x01
 
static final byte IS = 0x00
 
static final byte COMPRESS2 = 0x56
 
static final byte COMPRESS1 = 0x55
 
static final byte ATCP_CUSTOM = (byte) 0xC8
 
static final byte AARD_CUSTOM = 0x66
 
static final byte TERM = 0x18
 
static final byte NAWS = 0x1F
 
static final byte ECHO = 0x01
 
static final byte TTYPE = 0x18
 
static final byte GMCP = (byte) 201
 
static final int LSB_MASK = 0x000000FF
 
static final byte BREAK = (byte) 243
 
static final byte AO = (byte) 245
 
static final byte AYT = (byte) 246
 
static final byte EC = (byte) 247
 
static final byte EL = (byte) 248
 
static final byte CARRIAGE = (byte) 0x0D
 
static final byte GOAHEAD = (byte) 0xF9
 
static final byte IP = (byte) 0xF4
 
static final byte BELL = (byte) 0x07
 
static final byte SUPPRESS_GOAHEAD = (byte) 0x03
 

Detailed Description

Utility class that maps a bunch of telnet related constants.

Member Function Documentation

static String com.offsetnull.bt.service.TC.decodeIAC ( final byte[]  in)
static

Decodes an telnet negotiation (not subnegotiation).

Parameters
inThe telnet negotiation to decode.
Returns
The decoded telnet negotiation.

Here is the call graph for this function:

Here is the caller graph for this function:

static String com.offsetnull.bt.service.TC.decodeSUB ( final byte[]  in)
static

Decodes a subnegotation.

Parameters
inbyte array of the complete subnegotiation.
Returns
the string representation of the subnegotiation (IAC SB TTYPE ... etc)

Here is the call graph for this function:

Here is the caller graph for this function:

static String com.offsetnull.bt.service.TC.getByteName ( final byte  in)
static

Gets a string value for a given byte.

Parameters
inbyte value of the telnet constant you want a string for.
Returns
the string description of the telnet constant (IAC, DONT, etc).

Here is the caller graph for this function:

Member Data Documentation

final byte com.offsetnull.bt.service.TC.AARD_CUSTOM = 0x66
static

test constant for aard custom protocol.

final byte com.offsetnull.bt.service.TC.AO = (byte) 245
static

The A0 function.

final byte com.offsetnull.bt.service.TC.ATCP_CUSTOM = (byte) 0xC8
static

test constant for aard specific ATCP.

final byte com.offsetnull.bt.service.TC.AYT = (byte) 246
static

The AYT function.

final byte com.offsetnull.bt.service.TC.BELL = (byte) 0x07
static

The BELL byte.

final byte com.offsetnull.bt.service.TC.BREAK = (byte) 243
static

NVT character BRK.

final byte com.offsetnull.bt.service.TC.CARRIAGE = (byte) 0x0D
static

The CARRIAGE RETURN byte.

final byte com.offsetnull.bt.service.TC.COMPRESS1 = 0x55
static

MCCP1 constant.

final byte com.offsetnull.bt.service.TC.COMPRESS2 = 0x56
static

MCCP2 constant.

final byte com.offsetnull.bt.service.TC.DO = (byte) 0xFD
static

Telnet DO Constant.

final byte com.offsetnull.bt.service.TC.DONT = (byte) 0xFE
static

Telnet DONT Constant.

final byte com.offsetnull.bt.service.TC.EC = (byte) 247
static

The EC function.

final byte com.offsetnull.bt.service.TC.ECHO = 0x01
static

Telnet ECHO constant.

final byte com.offsetnull.bt.service.TC.EL = (byte) 248
static

The EL function.

final byte com.offsetnull.bt.service.TC.GMCP = (byte) 201
static

Telnet GMCP constant.

final byte com.offsetnull.bt.service.TC.GOAHEAD = (byte) 0xF9
static

The GOAHEAD byte.

final byte com.offsetnull.bt.service.TC.IAC = (byte) 0xFF
static

IAC (0xFF - 255) Interpret as command.

final byte com.offsetnull.bt.service.TC.IP = (byte) 0xF4
static

The IP Byte.

final byte com.offsetnull.bt.service.TC.IS = 0x00
static

Telnet IS constant.

final int com.offsetnull.bt.service.TC.LSB_MASK = 0x000000FF
static

LSB mask for a 32 bit int.

final byte com.offsetnull.bt.service.TC.MXP = (byte) 0x5B
static

MXP 0x5B Test byte for MXP.

final byte com.offsetnull.bt.service.TC.NAWS = 0x1F
static

Telnet NAWS constant.

final byte com.offsetnull.bt.service.TC.SB = (byte) 0xFA
static

Telnet SUB start constant.

final byte com.offsetnull.bt.service.TC.SE = (byte) 0xF0
static

Telnet SUB end constant.

final byte com.offsetnull.bt.service.TC.SEND = 0x01
static

Telnet SEND constant.

final byte com.offsetnull.bt.service.TC.SUPPRESS_GOAHEAD = (byte) 0x03
static

The Suppress goahead byte.

final byte com.offsetnull.bt.service.TC.TERM = 0x18
static

Telnet TERM constant.

final byte com.offsetnull.bt.service.TC.TTYPE = 0x18
static

Telnet TTYPE constant.

final byte com.offsetnull.bt.service.TC.WILL = (byte) 0xFB
static

Telnet WILL Constant.

final byte com.offsetnull.bt.service.TC.WONT = (byte) 0xFC
static

Telnet WONT Constant.


The documentation for this class was generated from the following file: