Making a MUD

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2004
Posts: 48
Reputation: mister-fett is an unknown quantity at this point 
Solved Threads: 0
mister-fett's Avatar
mister-fett mister-fett is offline Offline
Light Poster

Making a MUD

 
0
  #1
Sep 29th, 2005
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.
Cheese. In fact, I rather dislike cheese.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 7
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: Making a MUD

 
0
  #2
Sep 30th, 2005
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.
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 48
Reputation: mister-fett is an unknown quantity at this point 
Solved Threads: 0
mister-fett's Avatar
mister-fett mister-fett is offline Offline
Light Poster

Re: Making a MUD

 
0
  #3
Sep 30th, 2005
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)
Cheese. In fact, I rather dislike cheese.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 244
Reputation: Drowzee is an unknown quantity at this point 
Solved Threads: 5
Drowzee Drowzee is offline Offline
Posting Whiz in Training

Re: Making a MUD

 
0
  #4
Sep 30th, 2005
May I suggest you not necro-post and instead make a new topic?
Explainer of control logic and some basics.
"If you seek to drink from a fountain of knowledge, make sure your cup is big enough."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC