You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also having issues but your main is messed up first, you need to unwrap send_data() im fairly certain. Second you are sending the data then going into the recieve loop. Regardless nothing is happening in this main either by running it as a server then running the client:
fnmain(){letmut is_server = false;ifarg_count() > 2{println!("Invalid number of arguments max number of arguments allowed is 2");
std::process::exit(0);}for flag inget_flags(){match flag.flag_type{FlagType::Server => {
is_server = true;}
_ => {}}}if is_server {receive_data();
std::process::exit(0);}send_data().unwrap();}
Hey, I copied UDP example and added in
main
this:And it does nothing
The text was updated successfully, but these errors were encountered: