I’m trying to get a basic tcp server working in tokio…but i can’t seem to find a sample working for sending a buffer of Vec in the main loop? this https://play.rust-lang.org/?gist=7b89e5052f6340d28277ffe3484d9efa&version=stable&mode=debug compiles (so sorry for the warnings), I just need to send a byte buffer, how can i do it?
let buf = Bytes::new();
let snd = _writer.send(buf)
//this is where i’m confused to how to write code //
also where do i insert this code?