public interface RawSftpClient
Modifier and Type | Method and Description |
---|---|
Buffer |
receive(int id) |
Buffer |
receive(int id,
java.time.Duration timeout) |
Buffer |
receive(int id,
long timeout) |
int |
send(int cmd,
Buffer buffer) |
int send(int cmd, Buffer buffer) throws java.io.IOException
cmd
- Command to send - Note: only lower 8-bits are usedbuffer
- The Buffer
containing the command datajava.io.IOException
- if failed to send commandBuffer receive(int id) throws java.io.IOException
id
- The expected request idBuffer
containing the request idjava.io.IOException
- If connection closed or interruptedBuffer receive(int id, long timeout) throws java.io.IOException
id
- The expected request idtimeout
- The amount of time to wait for the responseBuffer
containing the request idjava.io.IOException
- If connection closed or interruptedBuffer receive(int id, java.time.Duration timeout) throws java.io.IOException
id
- The expected request idtimeout
- The amount of time to wait for the responseBuffer
containing the request idjava.io.IOException
- If connection closed or interrupted