fix: made uploads and downloads more consistent
This commit is contained in:
@@ -4,7 +4,7 @@ pub const CONFIG_SEPARATOR: &'static [u8] =
|
||||
pub mod messages {
|
||||
pub const CONNECT_MESSAGE: &'static [u8] = b"CONNECT";
|
||||
pub const CONNECTED_MESSAGE: &'static [u8] = b"CONNECTED";
|
||||
pub const FILE_TRANSFER_PACKET_SIZE: usize = 1024;
|
||||
pub const FILE_TRANSFER_PACKET_SIZE: usize = 768;
|
||||
pub const FILE_BUFFER_BUFFER_SIZE: usize = 512;
|
||||
|
||||
use std::{ffi::OsString, path::PathBuf};
|
||||
@@ -27,10 +27,10 @@ pub mod messages {
|
||||
|
||||
StartUploadFile(PathBuf, u64),
|
||||
SendFileSegment(u64, u64, Vec<u8>),
|
||||
GetUploadStatus(u64, u64),
|
||||
GetUploadStatus(u64, u64, u64),
|
||||
|
||||
StartDownloadFile(PathBuf),
|
||||
DownloadFileStatus(u64, Vec<u64>),
|
||||
DownloadFileStatus(u64, u64, Vec<u64>),
|
||||
|
||||
Disconnect,
|
||||
}
|
||||
@@ -77,10 +77,10 @@ pub mod messages {
|
||||
SendTTYData(u64, Vec<u8>),
|
||||
|
||||
UploadFileID(u64),
|
||||
UploadFileStatus(u64, Vec<u64>),
|
||||
UploadFileStatus(u64, u64, Vec<u64>),
|
||||
|
||||
StartDownloadFile(u64, u64),
|
||||
GetDownloadFileStatus(u64, u64),
|
||||
GetDownloadFileStatus(u64, u64, u64),
|
||||
DownloadFileSegment(u64, u64, Vec<u8>),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user