You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
809 B
22 lines
809 B
3 years ago
|
/*
|
||
|
ddtu - digital data transferring utility
|
||
|
Copyright (C) 2022 Kasyanov Nikolay Alexeyevich (Unbewohnte)
|
||
|
|
||
|
This program is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU Affero General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU Affero General Public License for more details.
|
||
|
*/
|
||
|
|
||
|
|
||
3 years ago
|
pub const CONNECTION_SHUTDOWN_PACKET_ID: u8 = 1;
|
||
|
pub const TEXT_PACKET_ID: u8 = 2;
|
||
|
pub const FILEINFO_PACKET_ID: u8 = 3;
|
||
|
pub const FILEDATA_PACKET_ID: u8 = 4;
|
||
|
|
||
|
pub const CHUNK_SIZE: usize = 262_144; // 256 KB
|