mirror of
https://github.com/Astatin3/unshell-nodes-rs.git
synced 2026-06-09 00:28:00 -06:00
Start working on structure
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
Reference in New Issue
Block a user