944,111 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5592
  • C++ RSS
Sep 29th, 2005
0

Making a MUD

Expand Post »
A few of my friends from computer science, led by me,
are developing a MUD game. I plan to run the server from home,
and we plan to write the game in two source files.
(Yes, we are determined to do this from scratch,
without Lima or Mudscript.)

The first source file, client.cpp, needs to send text commands to the
server, containing data such as this: "command=north; user=gameplayer"
And the server responds by changing the player position on the player
file, and sending "room=northern" to user gameplayer.

Is there a command and library dealing with internet data
in C or C++?

Any help or links to helpful websites would be much appreciated,
and it would be even better if anyone would like to help
develop the game.
Similar Threads
Reputation Points: 12
Solved Threads: 0
Light Poster
mister-fett is offline Offline
48 posts
since Aug 2004
Sep 30th, 2005
0

Re: Making a MUD

Yes there is, it is called sockets.

On windows you can use winsock2 just include <winsock2.h> (it is part of the standard windows API).

Search on the internet for "winsock tutorial" for further technical instructions on using the class.

Don't forget to link against ws2_32.lib or dynamically load winsock.dll .

Good Luck.
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Sep 30th, 2005
0

Re: Making a MUD

Thank you, that was incredibly helpful. I will post another reply to this topic when we have the MUD server running and the game finished.

(four to five months)
Reputation Points: 12
Solved Threads: 0
Light Poster
mister-fett is offline Offline
48 posts
since Aug 2004
Sep 30th, 2005
0

Re: Making a MUD

May I suggest you not necro-post and instead make a new topic?
Reputation Points: 22
Solved Threads: 5
Posting Whiz in Training
Drowzee is offline Offline
244 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Compare Char[] to ""
Next Thread in C++ Forum Timeline: question about a c++ program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC