Making my own MMORPG server

65713d3361a354314b5c988ec939ed8d
0
Philderbeast 101 Oct 10, 2008 at 03:16

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.

4 Replies

Please log in or register to post a reply.

A638aa42130293f319eda7fa4ba121f4
0
fireside 141 Oct 10, 2008 at 03:59

I don’t know if you’ve heard of it, but project darkstar might be something to check out.

65713d3361a354314b5c988ec939ed8d
0
Philderbeast 101 Oct 10, 2008 at 04:28

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….

4aee5e5f52b8472a11e8604f55c858e2
0
gillvane 101 Oct 11, 2008 at 00:09

Good luck with your project. Keep me posted so I can add you to the list.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 Oct 12, 2008 at 01:40

@Philderbeast

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?

http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/examples.html

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.