public interface Service<C extends Context>
TransportProtocol.
There is only one active service at anyone time and the current SSH protocol
defines the AuthenticationProtocol and the ConnectionProtocol.| Modifier and Type | Method and Description |
|---|---|
int |
getIdleTimeoutSeconds()
How long does the service allow idle for?
|
void |
idle()
Transport level idle
|
void |
init(AbstractServerTransport<C> transport)
Initialize the service.
|
boolean |
processMessage(byte[] msg)
Process a transport message.
|
void |
start()
Start the service.
|
void |
stop()
Stop the service
|
void init(AbstractServerTransport<C> transport) throws java.io.IOException
transport - java.io.IOExceptionboolean processMessage(byte[] msg)
throws java.io.IOException
TransportProtocol that is not a transport level message the
message is passed onto the active service using this method. The service
processes the message and returns a value to indicate whether the message
was used.msg - java.io.IOExceptionvoid start()
void stop()
int getIdleTimeoutSeconds()
void idle()
Copyright © 2022. All rights reserved.