A few comments,
It would be much more efficient/elegant if you'd rely on a scalable, robust solution such as boost::asio. It'd be much better than select()ing on sockets one at a time, which is pretty inefficient, select() doesn't scale well as it is anyway...
Also, this is definitely not ISO-C++. It looks like "C with classes" style to me, ISO-C++ is pretty **** elegant.
While you're at cleaning it up, and since you seem to be aiming at portability, why don't you start the C++11 movement around here? I mean the memory model is finally standardized and you won't have much trouble with multi-threaded code, so it would be really awesome if you would do the transition.
Oh and, nothing is wrong with C++ iostreams, really. Shaving up a few cpu cycles through early optimizations isn't going to help in the long run, especially when you're sacrificing both readability and safety for those cycles which are probably going to be wasted somewhere else anyway.
A few comments,
It would be much more efficient/elegant if you'd rely on a scalable, robust solution such as boost::asio. It'd be much better than select()ing on sockets one at a time, which is pretty inefficient, select() doesn't scale well as it is anyway...
Also, this is definitely not ISO-C++. It looks like "C with classes" style to me, ISO-C++ is pretty **** elegant.
While you're at cleaning it up, and since you seem to be aiming at portability, why don't you start the C++11 movement around here? I mean the memory model is finally standardized and you won't have much trouble with multi-threaded code, so it would be really awesome if you would do the transition.
Oh and, nothing is wrong with C++ iostreams, really. Shaving up a few cpu cycles through early optimizations isn't going to help in the long run, especially when you're sacrificing both readability and safety for those cycles which are probably going to be wasted somewhere else anyway.
That's just my opinion, though.
I'll check it out, but I like to avoid boost like the plague. While it is cross platform, stable, and powerful, it is a giant pain in the *** to get functional on systems from my past experiences many years ago. Might have improved since, but it left a bad taste in my mouth lol. I'll look into it though. As for C++11, I'd have to look into the changes as I stopped keeping up with it a while ago.
[Coding] C# Application Project vs. C# Console Project Threading 07/01/2011 - .NET Languages - 0 Replies Hey, so I'm coding a private server... and I was just wondering:
Is there a difference between Console Project threading and Application threading? I'm going to add a GUI into the console project if I can't do an Application project for other reasons, so putting the extra thread aside (for the Application running), is there a significant difference?
Thanks.
Sincerely,
Fang
Re-Make Project! Grand Chase Sound ( TAGALOG ) Project! 06/03/2011 - Grand Chase Philippines - 126 Replies To all, To people who want to contribute to this Project..
We Need:
Good Vocals, Matching the voices or almost like the voices of all the characters present in the Grand Chase Philippine Server
Good, Funny and nice Voice Replacer, Skill, Taunts and More..
Who really want to contribute.. Not by forcing yourself.
The means by enjoying it..
[NEW] Hacks+Bots project finished: Project Devastating 05/17/2011 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 3 Replies Welcome!
to: Project Devastation release
Hereby i release my free version of my multihack! (I will release my paid version soon, i have to fix a few draws..)
This hack works on European Cabal online servers!
The program searches it's variables inside the magic adresses, and freezes or changes them. It may be that your computer will become a bit slower at the start but it will regenerate.
How to work with the program?