philderbeast at October 9th, 2008 23:16 — #1
ok before anyone says it i know this is probably far to adventurous for me to do, so I'm willing to accept failure at any point of the project, but that dosen't mean i wont give it my best shot.
well so far i have worked out the model i want to use for the client/server communications and have got the rough idea of how i am gong to lay out my game.
however my first hurdle that I have run in to is getting the first of the networking operations working. I'm trying to get a chat server running and I have chosen to use the Boost::asio library to provide my socket interface as this seems to fill all the requirements I need, and in fact i have had some limited success with getting a connection up and running to fill this role. however its not perfect by any means.
so what I am after is some tutorials/documentation to help increase my understanding on how to get this running. so far i have a basic understanding of creating a socket and receiving/making a connection, however the code I'm using has the connection close as soon as I send any message (at this stage a connection successful...) so this is obviously not very useful.
any help would be appreciated.
fireside at October 9th, 2008 23:59 — #2
I don't know if you've heard of it, but project darkstar might be something to check out.
philderbeast at October 10th, 2008 00:28 — #3
looking at that it doesn't appear to be quite what I'm after.
as part of the project is expanding my own C++ knowledge so I don't want to get overboard using other people's code....
gillvane at October 10th, 2008 20:09 — #4
Good luck with your project. Keep me posted so I can add you to the list.
alphadog at October 11th, 2008 21:40 — #5
so what I am after is some tutorials/documentation to help increase my understanding
I'm assuming you've gone through the library of sample code at the Boost site itself?
I'll mention ACE, although like Boost.asio, it's a "kitchen sink" library and has lots of parts you may not need. It's mature and has a handful of books and a bit of a following on it.
For gaming, the most often mentioned one is RakNet. It's is a popular UDP game/networking library. Source is included. So are a fair amount of tutorials.
Another I've heard of for gaming, but never by someone who's really lived with it is LiON: http://lundman.net/wiki/index.php/LiON.