Home » Community » Forums » » MUD Pies Part II
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 MUD Pies Part II
Post Reply 
what happens if the user sends more than the buffer length, and recv() only gets part of the total data?

 User Rating: 1015    Report this Post to a Moderator | Link

Haven't had time to read it, but I'm very glad you got around
to part II. ^_^

-Hyatus
"da da da"

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

quote:
Original post by Anonymous Poster
what happens if the user sends more than the buffer length, and recv() only gets part of the total data?


I am under the impression that recv will buffer the data until it is grabed with another call to recv.

Of course, if I am mistaken, then it dosn't matter - as anyone sending that much data is probably flooding.



 User Rating: 1841   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Ahhhh....I used to run a MUD back in 1996 (altered MERC codebase)... It is a really cool and fun way to get into programming When you get something working in your mud, and people start to use it... it's joy

This is a really nice tutorial... Can't wait for part 3

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Andrew,

Fantastic stuff. Found one bug that probably doesn't show up in Borland, but does when compiling on MSVC6.

In the CUser class buffersize is never initialized. So the first time I ran it I got an exception error.

Also, it might be more efficient (as you mentioned at the end of your article) to use a container from the STL instead of maintaining your own linked list.

Other than that, looks and works great. Thank you!

Btw, I made these modifications (c++ string class, STL container, and bug fix) on my end. If you would like a copy please let me know (osiris@arkansas.net).

- Jason

 User Rating: 1027   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

YES! Finally. I was fearing this series was dead. Just remember people out there do actualy enjoy this series and can't wait for the next part in it.

 User Rating: 1015    Report this Post to a Moderator | Link

i am getting a bunch of unresolved externals that involve the TinyXML library.. is there a lib i am expose to include for the TinyXML library to work? (btw i am working off the downloaded source and the program runs (the precompiled one that is) but i won't compile)

 User Rating: 1015    Report this Post to a Moderator | Link

Top quality code AR. Works like a charm. I have made some off the optimisations you have recommended and left as a challenge to the coder. And to my surprise i have recieved only a slight performance increase. Which shows just how good your code works. PLEASE I BEG YOU FINISH THIS SERIES OFF!!

 User Rating: 1015    Report this Post to a Moderator | Link

Umm...Newbie warning...

I haven't managed to compile it. I've tried all compilers i got my hands on. MSVC6, MSVC.NET, BCB6 and few others and i always get errors about AClass operator.

This error is from MSVC6
server.obj : error LNK2001: unresolved external symbol "public: class AString & __thiscall AString::operator+(class AString const &" (??HAString@@QAEAAV0@ABV0@@Z)


 User Rating: 1015    Report this Post to a Moderator | Link

I can't really answer any questions about MSVC very well, because I don't have it (yet).

The next article will be MSVC compatable.

At the moment I'm just hoping someone with MSVC can jump in here and answer.


 User Rating: 1841   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

I'd like to preface by saying that I've worked on MUD src for years, including writing a few custom game servers and clients. Ok, so one of the servers was in VB, but hey, it was just a proof of concept

Anyways, I love what your doing here in this series. It takes a lot of trouble out of the learning process, and would have taken _weeks_ of research off my schedual back in the day when I started.

I also completely agree with the use of XML. Quite simply, it is one of the best ways to handle things. It gives you a fast, extensible data type that makes a _lot_ of things easier in the long run.

I'm not too familier with TinyXML myself, I've been working mostly in QT DOM objects. My current project is most likely going to be using the Apache Xerces XML engine/parser, we'll see how that goes... If I get this thing up and running in a week or so, I'll see if I can post some MSVC code for it.

The one thing I was wondering, is if you plan on outlining the telnet protocol itself? Client/server feature negotiation and whatnot. I know it may be a little advanced, but I think it would be a good thing to cover eventually.

Keep up the good work!

 User Rating: 1097   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Hey. Its been awile now... don't forget bout us Andy

 User Rating: 1015    Report this Post to a Moderator | Link

I know this is old, but I'm getting quite a few errors with the code like this:
1>server.obj : error LNK2019: unresolved external symbol "public: __thiscall CDataFile::CDataFile(void)" (??0CDataFile@@QAE@XZ) referenced in function "private: __thiscall CServer::CServer(void)" (??0CServer@@AAE@XZ)
Any ideas? Also, is the third article ever coming?...

 User Rating: 636   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: