xct/rcat ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Rust command line tool that can either connect to an IP and port or listen on one, kind of like a very simple netcat style utility for testing network connections.

I want it to be easy to use from the terminal, with a connect mode and a listen mode, and it should print clear messages about what it is doing and any connection errors. Please make it build cleanly for Linux, and also show how to compile a Windows version from Rust. If you need to check current Rust docs or target setup online, go ahead. Keep it simple and self contained, just a practical little networking tool I can use to verify that two machines can talk to each other.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab