|
|||||||||
| 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. |
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()
|
SocketAddress |
getRemoteAddress()
Get the address of the remote client. |
String |
getSessionIdentifier()
|
TransportProtocol |
getTransport()
Get the underlying transport. |
String |
getUsername()
|
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,
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 IOException
IOExceptionpublic void addGlobalRequestHandler(GlobalRequestHandler handler)
public SocketAddress getRemoteAddress()
public SocketAddress getLocalAddress()
public int getLocalPort()
public void stop()
public String getSessionIdentifier()
public boolean openChannel(Channel channel)
public void disconnect()
public boolean processMessage(byte[] msg)
throws 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.
IOExceptionpublic String getUsername()
public void sendGlobalRequest(com.maverick.ssh2.GlobalRequest request)
public int getQueueSize()
public void sendChannelOpenConfirmation(Channel channel,
byte[] responsedata)
public void sendChannelOpenFailure(Channel channel,
int reason,
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 | ||||||||