Interface RawSftpClient
-
- All Known Implementing Classes:
AbstractCheckFileExtension
,AbstractMD5HashExtension
,AbstractOpenSSHStatCommandExtension
,AbstractSftpClient
,AbstractSftpClientExtension
,CheckFileHandleExtensionImpl
,CheckFileNameExtensionImpl
,CopyDataExtensionImpl
,CopyFileExtensionImpl
,DefaultSftpClient
,MD5FileExtensionImpl
,MD5HandleExtensionImpl
,OpenSSHFsyncExtensionImpl
,OpenSSHStatHandleExtensionImpl
,OpenSSHStatPathExtensionImpl
,SpaceAvailableExtensionImpl
public interface RawSftpClient
- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
receive(int id)
int
send(int cmd, Buffer buffer)
-
-
-
Method Detail
-
send
int send(int cmd, Buffer buffer) throws IOException
- Parameters:
cmd
- Command to send - Note: only lower 8-bits are usedbuffer
- TheBuffer
containing the command data- Returns:
- The assigned request id
- Throws:
IOException
- if failed to send command
-
receive
Buffer receive(int id) throws IOException
- Parameters:
id
- The expected request id- Returns:
- The received response
Buffer
containing the request id - Throws:
IOException
- If connection closed or interrupted
-
-