[try Beta version]
Not logged in

 
Easy sockets

Feb 20, 2014 at 5:14am
Hey all,
Im looking for a library that makes networking in c++ easier. I've used "raw" sockets in linux, but i really didnt like it.

Any suggestions is appreciated :)
Feb 20, 2014 at 7:12am
Unmaintained and unsupported, but socket++ is very easy to use, and it works for simple use cases. http://www.linuxhacker.at/socketxx
Feb 20, 2014 at 11:26am
Feb 20, 2014 at 11:33am
Feb 20, 2014 at 5:15pm
Unmaintained and unsupported, but socket++ is very easy to use, and it works for simple use cases. http://www.linuxhacker.at/socketxx

That looks really nice but it seems that only is for linux, correct? I need something cross platform, should have put that in OP

Would Qt be an overkill? http://qt-project.org/doc/qt-5/qtcpsocket.html

Yeah, I'd rather not use QT :p

POCO might be interesting:

http://pocoproject.org/
http://pocoproject.org/docs/

Ill give it a look.

Thanks everyone!
Feb 20, 2014 at 5:28pm
Check out liblacewing:
http://lacewing-project.org/
It's a personal favorite of mine.
Feb 20, 2014 at 7:15pm
Feb 20, 2014 at 7:35pm
SFML is easy enough, it only took me a few hours to get the hang of it: http://www.sfml-dev.org/documentation/2.1/classsf_1_1Socket.php
Feb 20, 2014 at 8:54pm
I really like the looks of lacewing :)
I was actually waiting for someone to mention boost haha

Thanks for all the suggestions! I think im set now.
Feb 20, 2014 at 11:31pm
Is there more examples of lacewing? I checked out both the API docs & the examples they gave but I'd like a little more.

Sorry for the double post btw
Feb 20, 2014 at 11:43pm
What kind of example are you looking for?
Feb 21, 2014 at 12:03am
Anything really. A simple game using it would be perfect.
Feb 21, 2014 at 1:32am
SFML has a nice networking API, and it's very well documented.
Last edited on Feb 21, 2014 at 1:32am
Feb 21, 2014 at 3:14am
liblacewing is not very well known and is still in alpha development. Any games made with it would be made by me, since I'm a friend of the developer. People are pushing you to SFML and Boost, it looks like you haven't even considered them as options yet.

EDIT: So, I'm a total idiot. Leave me to my stupidity.
Last edited on Feb 21, 2014 at 3:59am
Feb 21, 2014 at 3:30am
Any games made with it would be made by me, since I'm a friend of the developer.


Well then chop chop LB, what's the hold up? Nah I'm just messing with you. But you should realize that, assuming your claim isn't exaggerated, the fact that you aren't claiming the title of co-developer calls into question its ... longevity let's say. I've never heard of it until today, but if I were asked in a meeting about it tomorrow I'd say you just torpedoed your "friend". Even us non-devs have to be-able to spot vapor-ware.

EDIT: @OP: SFML is well established, well documented, cross-platform and most importantly IMO, known at this site. What is there left to decide?
Last edited on Feb 21, 2014 at 3:32am
Feb 21, 2014 at 3:46am
@computergeek: If I didn't act like an idiot occasionally people would freak out. (I'm actually feeling pretty stupid right now.)
Last edited on Feb 21, 2014 at 3:48am
Topic archived. No new replies allowed.