|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.sshd.ConnectionProtocol
This class implements the SSH Connection Protocol as an SSH Transport Protocol service.
| Method Summary | |
void |
addGlobalRequestHandler(GlobalRequestHandler handler)
|
void |
disconnect()
Disconnect the current connection. |
SshContext |
getContext()
Get the connections ConfigurationContext. |
java.net.InetAddress |
getLocalAddress()
Get the local address to which the remote socket is connected. |
int |
getLocalPort()
Get the local port ro which the remote socket is connected. |
int |
getQueueSize()
|
java.net.SocketAddress |
getRemoteAddress()
Get the address of the remote client. |
byte[] |
getSessionIdentifier()
|
TransportProtocol |
getTransport()
Get the underlying transport. |
java.lang.String |
getUsername()
Get the username for the connected user. |
void |
init(TransportProtocol transport)
Initialize the service. |
boolean |
openChannel(Channel channel)
|
boolean |
processMessage(byte[] msg)
Process a transport message. |
void |
sendChannelOpenConfirmation(Channel channel,
byte[] responsedata)
|
void |
sendChannelOpenFailure(Channel channel,
int reason,
java.lang.String desc)
|
void |
sendGlobalRequest(com.maverick.ssh2.GlobalRequest request)
|
void |
start()
Start the service. |
void |
stop()
Stop the service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void init(TransportProtocol transport)
throws java.io.IOException
com.maverick.sshd.Service
init in interface com.maverick.sshd.Servicetransport -
java.io.IOExceptionpublic void addGlobalRequestHandler(GlobalRequestHandler handler)
public java.net.SocketAddress getRemoteAddress()
public java.net.InetAddress getLocalAddress()
public int getLocalPort()
public java.lang.String getUsername()
public void stop()
com.maverick.sshd.Service
stop in interface com.maverick.sshd.Servicepublic byte[] getSessionIdentifier()
public boolean openChannel(Channel channel)
public void disconnect()
public boolean processMessage(byte[] msg)
throws java.io.IOException
com.maverick.sshd.ServiceTransportProtocol 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.
processMessage in interface com.maverick.sshd.Servicemsg -
java.io.IOExceptionpublic void sendGlobalRequest(com.maverick.ssh2.GlobalRequest request)
public int getQueueSize()
public void sendChannelOpenConfirmation(Channel channel,
byte[] responsedata)
public void sendChannelOpenFailure(Channel channel,
int reason,
java.lang.String desc)
public SshContext getContext()
ConfigurationContext.
public TransportProtocol getTransport()
public void start()
com.maverick.sshd.Service
start in interface com.maverick.sshd.Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||