Originally Posted by
anduril462
Don't use assembly! Way too low level. It's really only used for drivers and embedded stuff nowadays, and some low-level system calls, much lower than what you're doing. You'll probably end up blowing your brains out if you try.
For Linux, look up the BSD sockets implementation. There are lots of docs and man pages. The main functions will be the socket, listen, send and recv functions (or sendto and recvfrom for UDP). You can google for tons of examples.
In Windows, you can use the Winsock API, which is based very heavily on the BSD implementation, so the code will be very similar. Microsoft's website should have plenty of docs and some examples IIRC. If not, the Linux examples should port with little effort.