Work on adding cli, and transport layer

This commit is contained in:
Michael Mikovsky
2025-06-13 15:21:15 -06:00
parent d7f350bd40
commit f26b739d43
16 changed files with 514 additions and 133 deletions
+30
View File
@@ -0,0 +1,30 @@
use bincode::{Decode, Encode};
use std::fmt::Debug;
#[derive(Debug, Encode, Decode, Clone)]
pub enum TransportLayerPacket {
RequestStreamUnrouted {
stream_id: usize,
},
AckStreamUnrouted {
local_stream_id: usize,
remote_stream_id: usize,
},
StreamDataUnrouted {
stream_id: usize,
data: Vec<u8>,
},
SpontaniousDataUnrouted {
data: Vec<u8>,
},
}
#[derive(Debug, Encode, Decode, Clone)]
pub enum C2Packet {
Ping,
Pong,
CreatePTY { width: usize, height: usize },
PTYData,
}