Commit graph

10 commits

Author SHA1 Message Date
Al Riddoch
b035ecfaab 2004-08-27 Al Riddoch <alriddoch@zepler.org>
* common/BaseWorld.h, server/CommSocket.h, server/CommIdleSocket.h:
	  Make constructors of some base classes protected.

	* server/Account.cpp: Note a possible bug in the character
	  creation code.

	* server/CommIdleSocket.cpp, server/CommIdleSocket.h,
	  server/CommListener.cpp, server/CommListener.h,
	  server/CommLocalClient.cpp, server/CommMetaClient.cpp,
	  server/CommMetaClient.h, server/CommPSQLSocket.cpp,
	  server/CommPSQLSocket.h, server/CommRemoteClient.cpp,
	  server/CommSocket.cpp, server/CommSocket.h,
	  server/CommUnixListener.cpp, server/CommUnixListener.h:
	  Clean up the Comm classes for consistancy and readability.
2004-08-28 00:58:01 +00:00
Al Riddoch
96d53420fd 2003-12-08 Al Riddoch <alriddoch@zepler.org>
* server/CommPSQLSocket.h: Change database vacuum intervals to
	  more reasonable ammounts.

	* server/CommPSQLSocket.cpp: Init m_vacuumFull to false, rather
	  than 0.
2003-12-08 14:22:24 +00:00
Al Riddoch
8b764a710d 2003-10-29 Al Riddoch <alriddoch@zepler.org>
* common/const.cpp, common/const.h, common/random.h,
	  physics/BBox.h, physics/Collision.cpp, physics/Collision.h,
	  physics/Quaternion.cpp, physics/Quaternion.h, physics/Vector3D.h,
	  rulesets/Movement.cpp, rulesets/Plant.cpp, rulesets/Python_API.cpp,
	  tests/collisiontest.cpp: Update variables relating to geometry
	  from double to float as this is the type used internall by
	  WFMath.

	* physics/Vector3D.cpp, physics/Quaternion.cpp, physics/Quaternion.h:
	  Remove legacy code.

	* server/CommPSQLSocket.cpp: Reformatting.
2003-10-29 01:39:09 +00:00
Al Riddoch
9c04705d93 2003-10-28 Al Riddoch <alriddoch@zepler.org>
* common/Database.h: Add a registry for all tables.

	* common/Database.cpp: Add names of all database tables to the
	  registry. Clean up, fix and fully implement running maintainance
	  commands on all tables on request.

	* server/CommPSQLSocket.h, server/CommPSQLSocket.cpp: Implement
	  timing variables for handling regular running of database
	  maintainance commands. Add code to schedule the commands to
	  idle method, alternating between VACUUM FULL and VACUUM ANALYZE.
2003-10-28 00:18:18 +00:00
Al Riddoch
ba566381af 2003-10-27 Al Riddoch <alriddoch@zepler.org>
* server/server.cpp: Add database socket to the idle set, so it
	  gets called for regular database maintainance.

	* server/CommPSQLSocket.cpp, common/Database.cpp: Clean up and
	  disable the debugging output.
2003-10-27 12:04:53 +00:00
Al Riddoch
94a62bc477 2003-10-27 Al Riddoch <alriddoch@zepler.org>
* server/server.cpp: Add communications object to handle getting
	  the response to database queries without blocking.

	* server/Persistance.h: Make database connection exposed so
	  that CommPSQLSocket can access it.

	* server/CommPSQLSocket.cpp: Add debugging output, and implement
	  dispatching new queries once we have response to previous.

	* common/Database.h, common/Database.cpp: Switch code to submit
	  all command queries via the async que, so we don't block
	  waiting for them to complete. Currently very noisy.
2003-10-27 01:59:53 +00:00
Al Riddoch
a6fc58508b 2003-10-25 Al Riddoch <alriddoch@zepler.org>
* server/CommPSQLSocket.cpp: Implement processing the response to
	  async queries.

	* common/Database.h, common/Database.cpp: Add new data and interface
	  for managing a queue of queries so they can be processed
	  asyncronously.
2003-10-24 23:50:12 +00:00
Al Riddoch
6d98557d9a 2003-10-24 Al Riddoch <alriddoch@zepler.org>
* tests/EntityExerciser.h, server/CommPSQLSocket.cpp:
	  Add <cassert> to keep gcc 3.3 happy.

	* tools/cyconfig.cpp: Clean up formatting.
2003-10-24 21:24:26 +00:00
Al Riddoch
651fbb9baf 2003-10-24 Al Riddoch <alriddoch@zepler.org>
* server/CommPSQLSocket.cpp: Add some query processing code, and
	  comments about code to be written.
2003-10-24 21:18:28 +00:00
Al Riddoch
5388ca316e 2003-10-24 Al Riddoch <alriddoch@zepler.org>
* server/CommPSQLSocket.h, server/CommPSQLSocket.cpp,
	  common/Database.h: Work in progress on Comm object to handle
	  non-blocking database communication.

	* physics/Collision.cpp: Remove obsolete FIXME about non-valid
	  velocity.
2003-10-24 16:59:18 +00:00