|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| MUD Pies Part II |
|
![]() Anonymous Poster |
||||
|
||||
| what happens if the user sends more than the buffer length, and recv() only gets part of the total data? |
||||
|
||||
![]() Hyatus Member since: 11/7/2000 From: Roseburg, OR, United States |
||||
|
|
||||
| Haven't had time to read it, but I'm very glad you got around to part II. ^_^ -Hyatus "da da da" |
||||
|
||||
![]() Andrew Russell Moderator Member since: 11/23/2000 From: Brisbane, Australia |
||||
|
|
||||
quote: 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. |
||||
|
||||
![]() bloid Member since: 1/6/2004 |
||||
|
|
||||
| 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 This is a really nice tutorial... Can't wait for part 3 |
||||
|
||||
![]() wmurdick Member since: 1/25/2000 From: Saint Louis, MO, United States |
||||
|
|
||||
| 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
Other than that, looks and works great. Thank you! Btw, I made these modifications (c++ string class, STL
- Jason |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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. |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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) |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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!! |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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 & |
||||
|
||||
![]() Andrew Russell Moderator Member since: 11/23/2000 From: Brisbane, Australia |
||||
|
|
||||
| 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. |
||||
|
||||
![]() Rhalin Member since: 3/16/2004 From: USA |
||||
|
|
||||
| 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! |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| Hey. Its been awile now... don't forget bout us Andy |
||||
|
||||
![]() brandonman Member since: 3/26/2006 From: Saint Louis, MO, United States |
||||
|
|
||||
| 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?... |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|