Simple Peer-to-Peer in C.

Mar 18, 2014 at 12:02am
Using C instead of C++, can anyone link me to a for-dummies example of simple peer-to-peer connections in C? I want to make a program that can send and receive simple variables on a peer-to-peer network. Thanks!
Mar 18, 2014 at 12:49am
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740149(v=vs.85).aspx

Use ctrl+f and enter "Example Code". You didn't mention a platform so I assumed Windows, sorry if that is not correct.
Mar 18, 2014 at 1:03am
That is simple. Thanks! Is there anything that is platform independent and can send and receive data regardless of the operating system? Sending variables from Linux to Windows, for example?
Mar 19, 2014 at 3:42pm
Yes, there are a few libraries that let you write portable code for sockets. I like SFML personally, Boost::Asio is another popular choice.
Topic archived. No new replies allowed.