public interface SshChannel extends SshStreamChannel
SshChannelHandler
implementations.| Modifier and Type | Interface and Description |
|---|---|
static interface |
SshChannel.ChannelData
Encapsulate details needed for channel creation
|
| Modifier and Type | Method and Description |
|---|---|
SshChannel.ChannelData |
getChannelData()
Get the
SshChannel.ChannelData that was used to create this channel |
java.lang.String |
getName()
Get the channel name
|
boolean |
sendRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
Sends a channel request.
|
getInputStream, getOutputStreamaddDataListener, removeDataListeneraddListener, close, isOpen, open, removeListenerjava.lang.String getName()
SshChannel.ChannelData getChannelData()
SshChannel.ChannelData that was used to create this channelboolean sendRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
throws SshException
requesttype - the name of the request, for example "pty-req"wantreply - specifies whether the remote side should send a
success/failure messagerequestdata - the request datatrue if the request succeeded and wantreply=true,
otherwise falseSshExceptionCopyright © 2018. All rights reserved.