diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-08 20:29:21 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-08 20:29:21 +0100 |
| commit | 7202a395f9397ef22e137037a31d85668ceb1be7 (patch) | |
| tree | fcbccb098372339bb6cab493f25e39690628f22c /src/lib.rs | |
| parent | 6694875f8cd850ae0a09c88790921c47d7bd2bfe (diff) | |
Use threadpool to handle multiple clients in parallel
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,12 +21,14 @@ pub enum Opcodes { OACK = 0x06, } +#[derive(Clone, Copy)] pub struct TftpOptions { blksize: usize, timeout: u8, tsize: u64, } +#[derive(Clone, Copy)] pub struct Tftp { options: TftpOptions, progress_cb: Option<fn(u64, u64, u64) -> u64>, |
