mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
SFTPPacket constructor takes care of putting the type byte
This commit is contained in:
@@ -25,11 +25,10 @@ public class Request
|
|||||||
private final Future<Response, SFTPException> responseFuture;
|
private final Future<Response, SFTPException> responseFuture;
|
||||||
|
|
||||||
public Request(PacketType type, long reqID) {
|
public Request(PacketType type, long reqID) {
|
||||||
super();
|
super(type);
|
||||||
this.reqID = reqID;
|
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
this.reqID = reqID;
|
||||||
responseFuture = new Future<Response, SFTPException>("sftp / " + reqID, SFTPException.chainer);
|
responseFuture = new Future<Response, SFTPException>("sftp / " + reqID, SFTPException.chainer);
|
||||||
putByte(type.toByte());
|
|
||||||
putInt(reqID);
|
putInt(reqID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user