Thread with 3 posts
jump to expanded posthas anyone following me worked with Rust’s standard library networking stuff (std::net)? how was it? I’m interested in TCP and possibly non-blocking usage.
(I’m not interested in other ways of doing networking in Rust.)
@hikari I haven’t worked with it extensively, but I found it to be much much easier than working with Berkeley sockets in C directly. It feels like a pretty good balance between ergonomics, low-level control, and cross-platform support
Non-blocking is definitely doable but I bet it’ll be painful without the conveniences of the async/await world.
@kylewlacy ah, that’s what I was hoping for. my experience was the file I/O is better than the C standard library and POSIX for most uses, so I expected the networking would be similar