public class TransportProtocolState extends State
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTED |
static int |
DISCONNECTED |
java.io.IOException |
lastError |
static int |
NEGOTIATING_PROTOCOL |
static int |
PERFORMING_KEYEXCHANGE |
java.lang.String |
reason |
static int |
UNINITIALIZED |
Constructor and Description |
---|
TransportProtocolState()
Creates a new TransportProtocolState object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisconnectReason() |
java.io.IOException |
getLastError() |
boolean |
hasError() |
boolean |
isValidState(int state) |
protected void |
setDisconnectReason(java.lang.String reason) |
protected void |
setLastError(java.io.IOException lastError) |
breakWaiting, getValue, setValue, waitForState, waitForState, waitForStateUpdate
public static final int UNINITIALIZED
public static final int NEGOTIATING_PROTOCOL
public static final int PERFORMING_KEYEXCHANGE
public static final int CONNECTED
public static final int DISCONNECTED
public java.io.IOException lastError
public java.lang.String reason
public TransportProtocolState()
protected void setLastError(java.io.IOException lastError)
lastError
- public boolean hasError()
public java.io.IOException getLastError()
protected void setDisconnectReason(java.lang.String reason)
reason
- public java.lang.String getDisconnectReason()
public boolean isValidState(int state)
isValidState
in class State
state
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.