summaryrefslogtreecommitdiffstats
path: root/src/connectionhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Physically split the server into one tmwserv-acount program (account +Guillaume Melquiond2006-12-291-176/+0
| | | | | | | | chat + database) and multiple tmwserv-game programs (selected with respect to the maps). Cleaned the repository by moving server-specific source files into dedicated directories.
* Applied patch by Rogier, adding a stream operator to NetComputer for logging ↵Bjørn Lindeijer2006-08-261-7/+3
| | | | purposes.
* Some code format changes, logging improvals and commenting.Bjørn Lindeijer2006-08-201-6/+5
|
* Removed Packet class and the UNKNOWN gender.Bjørn Lindeijer2006-08-141-6/+4
|
* Log sending of messages and include more verbose messages for runserv.sh.Bjørn Lindeijer2006-08-131-1/+1
|
* Changed character list to a sequence of packets and fixed a db issue.Eugenio Favalli2006-08-131-5/+5
|
* Removed ConnectionHandler::forceDisconnect method and implemented part of theBjørn Lindeijer2006-08-101-5/+0
| | | | | NetComputer::disconnect method instead. Makes NetComputer::getPeer unnecessary.
* Split server into three logical servers: an account server, a chat Guillaume Melquiond2006-05-231-137/+16
| | | | | server, and a game server.
* Changed ConnectionHandler and NetComputer into low-level base classes; Guillaume Melquiond2006-05-201-92/+45
| | | | | | | they are overloaded by client-aware classes. Forced statement syntax for loggers.
* Switched to a monothreaded server. Fixed segfaults after disconnect. Guillaume Melquiond2006-05-191-98/+105
| | | | | Removed netsession.
* Applied a patch by Guillaume that fixes and optimizesBjørn Lindeijer2006-05-141-11/+11
| | | | | ConnectionHandler::sendAround.
* Applied patch by Guillaume Melquiond which adds ENet check and adds timer.cpp/hBjørn Lindeijer2006-05-131-11/+13
| | | | | to the Makefile.am. Also fixed some compilation warnings.
* removed the last remains of SDLPhilipp Sehmisch2006-04-301-129/+0
|
* Merged enet_switch changes r2268:2309 into the trunk.Eugenio Favalli2006-04-281-1/+109
|
* Cleaned up unnecessary header dependencies and fixed some indentations.Björn Steinbrink2006-03-061-6/+8
|
* Added the server code to enter and leave a channel. Some minor fix to the ↵Yohann Ferreira2006-03-051-2/+28
| | | | state code, and completed the TODO a little for later coding.
* Chat Channeling Commit part 4. Renamed the slang filter into StringFilter ↵Yohann Ferreira2006-01-241-0/+21
| | | | and moved some code to it. Added the missing protocol values, and implemented registering/registering of channels; More to come about it.
* Chat channeling commit part 3. Is now linked with the connection handler to ↵Yohann Ferreira2006-01-201-0/+19
| | | | chat in a specific channel. Also made some fixes on the chat channeling.
* Added default behaviour to protocol. Added a client login limitation check. ↵Yohann Ferreira2006-01-041-2/+5
| | | | Some cleanups.
* Adding changes thought by Elven and an option for setting the port to listen ↵Yohann Ferreira2005-12-291-3/+1
| | | | on at startup.
* Implemented common chat handling, except for chatting in channels. Also the ↵Yohann Ferreira2005-12-271-1/+42
| | | | Channel registering/unregistering isn't there yet and the commands needs to be implemented. Added a small slangs filter to reduce bad words in account names and in conversations a little.
* Adding command line argument parsing and log verbosity level handling.Yohann Ferreira2005-12-201-14/+11
|
* Made the handlers use the countedPtr for Beings as they should. Fixed a ↵Yohann Ferreira2005-12-181-2/+2
| | | | segfault when removing a being from the world.
* Added unregistering, checking on character's name and email length support. ↵Yohann Ferreira2005-12-111-1/+1
| | | | Also made some little tweaks. I'll start to think about a --verbose mode after adding logout and character deletion support.
* Added beginnings of game core logic and state.Aaron Marks2005-07-311-0/+12
| | | | | | Fixed a few problems with SQL queries using different SQL DB backends. I forget everything else.
* Added modified Map, MapReader, ResourceManager classes and base64 functionsBjørn Lindeijer2005-07-251-2/+4
| | | | | from client to server. Nothing tested yet, just made sure it still compiled.
* Added character selection.Aaron Marks2005-07-241-2/+2
|
* Changing the way the message ID is read.Bjørn Lindeijer2005-07-191-20/+20
|
* Updated server->client communications.Aaron Marks2005-07-181-21/+6
|
* Added server->client communications.Aaron Marks2005-07-171-4/+20
| | | | | Updated MessageHandler's to use short for message type.
* Removed a lot of tabs used for indenting (please don't do that...), redidBjørn Lindeijer2005-07-161-43/+52
| | | | | | MessageOut a bit so that it uses SDL_net, writes strings correctly and doesn't rely on Packet to be expandable. Also specified message IDs explicitly.
* Implemented MessageOut.Aaron Marks2005-07-131-4/+9
| | | | | | | Rewrote MessageIn::readString - it was overly complex and didn't operate correctly. Update test client so it sends a login message.
* Fixed problem with PostgreSQL support (variable was undefined).Aaron Marks2005-07-121-0/+84
| | | | | | Added client/server message type enumerations. Enabled message handling in ConnectionHandler.
* Actually using the new Logger now.Huynh Tran2005-06-191-40/+31
|
* Some cleanups mostly in account class formatting.Bjørn Lindeijer2005-06-121-0/+7
|
* Updated Makefile.amAaron Marks2005-05-211-1/+1
|
* Added logger use in some files that could tell things already.Yohann Ferreira2005-05-081-9/+11
|
* Added basic object definition for reviewal.Aaron Marks2005-04-191-0/+7
| | | | | Added basic scripting interface & Squirrel (squirrel.sf.net).
* Server now succesfully listens for connections, accepts them, receives someBjørn Lindeijer2005-04-181-0/+107
| | | | | data in a crude way and cleans up connection on client disconnect.
* More complete implementation of startListen and stopListen, told CVS to ignoreBjørn Lindeijer2005-03-211-1/+5
| | | | | | some files and compile fixes (it actually compiles now, just don't expect it to do anything useful)
* Small changes to ConnectionHandler and MessageHandler, while adding interfacesBjørn Lindeijer2005-03-181-0/+5
| | | | | for Packet, MessageIn and MessageOut.
* Added preliminary interfaces for NetSession, NetComputer, ConnectionHandlerBjørn Lindeijer2005-03-161-0/+25
and MessageHandler.