HMojtaba
HMojtaba

Reputation: 11

I wanna make a UDP communication between two or more computers

I need to make a connection through wireless or LAN. I have done this on Windows (VS2008 C#, Sockets), but not on Linux (Ubuntu 10.04). I have installed mono, and I can handle many things there, but it's speed is unacceptable for my 600MHz processor, so I decided to move on C++, but I'm new to C++ and I'm not familiar to many of it's headers. Is there any header or library which can do that for me?

Upvotes: 1

Views: 270

Answers (2)

jdehaan
jdehaan

Reputation: 19938

Did you think about using boost::asio, this way you can share at least the code between linux & windows. The overhead is not that big compared to naked sockets and you have the benefit of better semantics. Many parts of code from boost have flown into standard C++ so the code is of rather high quality.

Upvotes: 0

ShinTakezou
ShinTakezou

Reputation: 9681

How the actual connection is done (if wireless or cable) should be up to the system; if you want to use sockets, I suggest reading of beej guide to network programming , it contains everything (or so) you need to know. It's C mainly, but reusing it for C++ needs no effort.

Upvotes: 1

Related Questions