Blog/ Network-programming-is-a-bitch

Writing networking code in C/C++ really isn't that easy. After having lots of problems with SDL_net - unexpected crashes and the like, i tried finding another nice and easy C++ networking library that would do everything i needed - i found skstream http://www.worldforge.org/dev/eng/libraries/skstream , the library used by the WorldForge project, however they have a GPL license on that, so that's a no go in a LGPL library.

After that i tried a lot of libraries out, none as nice as skstream though (or at least, that was the general feeling i got) - all i wan't is to be able to write some characters to a network stream and get Exception thrown at me when something screws up - not really that much to ask is it.

Well i finally settled for Netxx http://pmade.org/software/netxx/ not nearly as easy to use as skstream - but near it. The only fucked up thing about it was the build system - no bad words about the Jam build system - however if they want to look like make they should at least provide a "jam install" command - anyway i wrote the necessary autotools stuff, and got it to install and link to my library.

And this leaves us at the current point, networking code seems to be working - however i'm still not happy with the code, however time is really at the minimum in the project now - exam is quickly approaching, and we have a lot of other things to do rather than fuck-around with stupid networking code.

Bottom line is: if you can avoid networking in C++ do so. It's not nearly as easy as in Python or Java (or Perl i presume).

It may end up in me and MadsG not using net network code at all, we have a meeting with out supervisor tomorrow, and i think we need to decide wether or not to use it. I have an exam the 18. of June and i would preferably have 14 days to prepare for that.

Ohh, and there's the annual Carneval in Aalborg this Weekend with a really nice Gasolin bootleg-band - and i reeeeeeaaally need to get drunk soon - and here i am sweating over some iritating networking code - when i should be sewing a costume (or at least buy one from somewhere) - oh well - the summer holidays are rapidly approaching - and i'll make a drinking comeback then.


CategoryBlog

Blog/Network-programming-is-a-bitch (last edited 2004-05-19 02:20:00 by RasmusToftdahlOlesen)