Class: State

State(ctx)

base state class for TLS state machine

Constructor

new State(ctx)

construct a new state from either previous state or the TLS context (initial state)
Parameters:
Name Type Description
ctx State | TLS
Source:

Methods

exit()

virtual
Source:

setState(NextState, …args)

go to next state
Parameters:
Name Type Attributes Description
NextState State next state
args * <repeatable>
rest parameters
Source:

write(type, data)

write data
Parameters:
Name Type Description
type ContentType
data buffer
Source: