Package com.ultikits.ultitools.utils
Interface AgentConnection.Handle
- All Known Implementing Classes:
AgentSocket
- Enclosing class:
AgentConnection
static interface AgentConnection.Handle
One attempt's socket, as the state machine sees it.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAttempt(int code, String reason) Closes the attempt: the closing handshake when open, a forced close otherwise.boolean
-
Method Details
-
closeAttempt
Closes the attempt: the closing handshake when open, a forced close otherwise.- Parameters:
code- the close codereason- the close reason
-
sendText
- Parameters:
text- the text frame- Returns:
- whether it was handed to an open socket
-