tags:

views:

54

answers:

2

Hi every one! I really need to make this connection throw wireless (or lan ethernet). I have done this on windows (VS2008 C#, sockets), but here 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 any library which can do that for me?

thanks

+1  A: 

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.

ShinTakezou
Thank u a lot answering my question ...ok, i saw that book, nice but it's something hard for me to do that,I know that i should put more energy to learn it, but if there were alibrary or sth which i could use ...
HMojtaba
try serveez http://www.gnu.org/software/serveez/ but it could sound hard too, requiring a little bit of studies and work
ShinTakezou
A: 

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.

jdehaan
the boost library would be too complicated for beginners imho...
Unknown
Yeah, that's what i need. Thank you. I saw the online documentation, it seems it can also solve my other issues about multithreading.Unfortunately the sourceforge.net has blocked our country(Iran) so i cannot download the boost library. is there any suggestion downloading it's last release 1.43? again thanks for everything
HMojtaba