Skip to content

Instantly share code, notes, and snippets.

View LivingInSyn's full-sized avatar

Jeremy Mill LivingInSyn

View GitHub Profile
@rsolomo
rsolomo / udp_listener.rs
Last active July 15, 2022 14:19
trying out creating a udp listener in Rust
use std::io::net::ip;
use std::io::net::udp;
use std::str;
fn main() {
let addr = ip::SocketAddr {
ip: ip::Ipv4Addr(127, 0, 0, 1),
port: 5514
};