Helper class to the Processor. This object keeps track of the negotiation responses.
com.offsetnull.bt.service.OptionNegotiator.OptionNegotiator |
( |
final String |
ttype | ) |
|
Constructor.
- Parameters
-
ttype | The package level configurable termtype option. |
final int com.offsetnull.bt.service.OptionNegotiator.getColumns |
( |
| ) |
|
Getter method for the NAWS Column data.
- Returns
- The number of columns.
final byte [] com.offsetnull.bt.service.OptionNegotiator.getNawsString |
( |
| ) |
|
Utility method to get the current NAWS String. Used for debugging telnet data.
- Returns
- The NAWS String that will be sent to the server (or already sent, not sure).
final int com.offsetnull.bt.service.OptionNegotiator.getRows |
( |
| ) |
|
Getter method for NAWS rows.
- Returns
- Number of rows that NAWS is reporting.
final byte [] com.offsetnull.bt.service.OptionNegotiator.getSubnegotiationResponse |
( |
final byte[] |
sequence | ) |
|
Processing routine for telnet subnegotiations.
- Parameters
-
sequence | The whole telnet subnegotiation sequence. |
- Returns
- The response to sequence
final byte [] com.offsetnull.bt.service.OptionNegotiator.processCommand |
( |
final byte |
first, |
|
|
final byte |
second, |
|
|
final byte |
third |
|
) |
| |
The top level telnet processing routine.
- Parameters
-
first | I believe this will always be IAC |
second | The action byte, WILL, WONT, DO, DONT |
third | The actual negotiation type, TTYPE, NAWS, GMCP, MCCP2, etc. |
- Returns
- The response to the given telnet negotiation.
final void com.offsetnull.bt.service.OptionNegotiator.reset |
( |
| ) |
|
Reset method, this is just to let the processing routines know that the TTYPE stack is reset to the beginning.
final void com.offsetnull.bt.service.OptionNegotiator.setColumns |
( |
final int |
columns | ) |
|
Method to set the number of columns for NAWS.
- Parameters
-
columns | The columns to use for NAWS. |
final void com.offsetnull.bt.service.OptionNegotiator.setRows |
( |
final int |
rows | ) |
|
Method to set the number of rows for NAWS.
- Parameters
-
rows | The rows to report for NAWS. |
final void com.offsetnull.bt.service.OptionNegotiator.setUseGMCP |
( |
final Boolean |
useGMCP | ) |
|
Setter method for mUseGMCP.
- Parameters
-
useGMCP | Weather or not to negotiate GMCP. |
The documentation for this class was generated from the following file: