Hi, I'm trying to write a simple C program that can communicate on a network (LAN or Internet - I don't care).
i.e. I want to be able to open a network connection to a remote machine on a given port (e.g. 80 TCP) and send/receive data.
Any protocols isn't important to me - I'm happy with the raw data for now.
Any ideas how I might go about this? Any libraries or things that might be useful?
I'd prefer to compile it on linux (with gcc) but I guess it doesn't matter that much if I do it on windows (with Turbo C 2.01).
Thanks in advance.