|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.ConnectionProtocol
public class 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.SocketAddress |
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. |
java.lang.String |
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
java.io.IOExceptionpublic void addGlobalRequestHandler(GlobalRequestHandler handler)
public java.lang.String getSessionIdentifier()
public java.net.SocketAddress getRemoteAddress()
public java.net.SocketAddress getLocalAddress()
public int getLocalPort()
public java.lang.String getUsername()
public void stop()
public boolean openChannel(Channel channel)
public void disconnect()
public boolean 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.
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||