Commit graph

309 commits

Author SHA1 Message Date
Manohar Vanga
446913d6d4 Removed incorrect peer code from server.cpp 2010-08-17 11:58:16 +05:30
Manohar Vanga
aa0e9d91ff Added peer objects to ServerRouting so we can find them later 2010-08-17 11:58:16 +05:30
Manohar Vanga
894b772f95 Added some error checking in server.cpp 2010-08-17 11:58:16 +05:30
Manohar Vanga
c1b5549077 Changed separator to | from , 2010-08-17 11:58:16 +05:30
Manohar Vanga
0807d4371e Fixed peer negotiation and login op sending 2010-08-17 11:58:16 +05:30
Manohar Vanga
2a91eb2a80 Fixed startup code to use new constructor. Added call to read(). 2010-08-17 11:58:16 +05:30
Manohar Vanga
92d5f89ee1 Removed exit-on-failure during peer connection 2010-08-17 11:58:16 +05:30
Manohar Vanga
5d9c9132a4 Added some helpful log() calls to detect issues more easily 2010-08-17 11:58:16 +05:30
Manohar Vanga
0eb45f7a36 Added a read() to initialize m_encoder in CommPeer 2010-08-17 11:58:15 +05:30
Manohar Vanga
a0f3c02823 Added automatic login for peers at time of connection (broken) 2010-08-17 11:58:15 +05:30
Manohar Vanga
deb966ec0b Fixed memory leak caused by peer connection errors 2010-08-17 11:58:15 +05:30
Manohar Vanga
198d64d702 Modified config method for peer connections at startup 2010-08-17 11:56:56 +05:30
Manohar Vanga
4fea79b16d Added automatic server account name generation 2010-08-17 11:56:55 +05:30
Manohar Vanga
f1f6cda48a Peer list is now loaded from ~/.cyphesis.vconf 2010-08-17 11:56:10 +05:30
Manohar Vanga
934e29b4de Added connecting of a single peer during startup 2010-08-17 11:56:10 +05:30
Manohar Vanga
8bf764b4d8 Added a class for facilitating inter-server communication 2010-08-17 11:56:08 +05:30
Manohar Vanga
7ea6378639 Created default ServerAccount (changed name Server --> ServerAccount) 2010-08-17 11:47:59 +05:30
Alistair Riddoch
035f25e5dd Start work on a test movement domain class for handling collisions with bullet. 2010-08-10 00:54:25 +01:00
Alistair Riddoch
e3012c88be Refactor creating Arithmetic objects to de-couple properties from scripting 2010-07-13 16:23:46 +01:00
Alistair Riddoch
208f553f04 Move the functionality for loading rule data, and configuring into Ruleset. 2009-08-19 02:47:15 +01:00
Alistair Riddoch
f1f6fb8ed2 Move restricted option to new mechanism. 2009-04-09 00:27:11 +01:00
Alistair Riddoch
e4be4eed46 Move more options to the new dynamic mechanism. 2009-04-09 00:13:15 +01:00
Alistair Riddoch
670c09f990 Move metaserver boolean option to the new mechanism. 2009-04-08 21:56:24 +01:00
Alistair Riddoch
61d57f84b7 Move socket config options to the new mechanism. 2009-04-08 21:22:19 +01:00
Alistair Riddoch
86210acd97 Move CommServer setup into its own function. 2009-04-08 09:46:04 +01:00
Alistair Riddoch
617f66dbef Convert trial option peer_port to the new machanism. 2009-04-08 02:21:54 +01:00
Alistair Riddoch
8e91087bef Correct the section of the httpport option 2009-04-08 02:02:44 +01:00
Alistair Riddoch
521b8fdf09 Add new inlined config options system inspired by gflags 2009-04-07 23:17:49 +01:00
Alistair Riddoch
ffd019a744 Correct the spelling of persistence. 2009-03-24 03:08:45 +00:00
Alistair Riddoch
cd1f42c3f9 Rename Inheritance class files to match class name. 2009-03-20 15:31:38 +00:00
Al Riddoch
84c1a94412 Rename files for EntityBuilder from EntityFactory to match the class rename. 2009-03-12 00:50:25 +00:00
Al Riddoch
6d38e8f9d4 2009-02-09 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Switch the python listener over to using a
	  unix socket using the configuration setting.
2009-02-09 05:41:27 +00:00
Al Riddoch
ac7665e3c0 2009-01-30 Al Riddoch <alriddoch@googlemail.com>
* server/CommClientFactory.cpp, server/CommClientFactory.h,
	  server/server.cpp: Add in test support for the python client.
2009-01-30 00:43:41 +00:00
Al Riddoch
e3858e1c36 2009-01-29 Al Riddoch <alriddoch@googlemail.com>
* server/CommClientFactory.cpp, server/CommClientFactory.h: Add a
	  new factory for http client objects.

	* server/CommStreamListener.cpp, server/CommStreamListener.h:
	  Move the client factory behavior into this base class
	  as all listners will now be using it.

	* server/CommTCPListener.cpp, server/CommTCPListener.h,
	  server/CommUnixListener.cpp, server/CommUnixListener.h:
	  Require a client factory reference and pass to the base class
	  which uses it.

	* server/Makefile.am: Remove obsolete special purpose listeners.

	* server/server.cpp: Use straight TCP listeners for everything
	  as no special purpose listener functionality is required any more.
2009-01-29 16:26:25 +00:00
Al Riddoch
af0b5cb7e3 2009-01-28 Al Riddoch <alriddoch@googlemail.com>
* server/CommListener.cpp, server/CommListener.h,
	  server/server.cpp: Rename class to CommAtlasListener.
2009-01-28 15:56:14 +00:00
Al Riddoch
61415545d8 2009-01-28 Al Riddoch <alriddoch@googlemail.com>
* server/CommPeer.h, server/CommPeer.cpp: Re-factor CommPeer to
	  only be used for initiating peer connections.

	* server/Admin.cpp: Use the modified CommPeer constructor.

	* server/CommClient.h, server/CommClient.cpp: Make the connection
	  a pointer rather than a reference, and pass it in during setup.

	* server/CommClientFactory.h, server/CommClientFactory.cpp: Re-factor
	  the commclient factory to take connection type as a template param,
	  and create the client and connection objects separately.

	* server/server.cpp: Use the modified CommClientFactory parameter.

	* server/Makefile.am: Remove the different kinds of client class
	  from the build.
2009-01-28 02:21:29 +00:00
Al Riddoch
cb3c3033bd 2009-01-28 Al Riddoch <alriddoch@googlemail.com>
* server/CommLocalClient.cpp, server/CommLocalClient.h: Fix the
	  constructor interface to match that used by the factory.

	* server/CommClientFactory.cpp: Add support for CommLocalClient.

	* server/CommUnixListener.cpp, server/CommUnixListener.h:
	  Convert the unix listener to use the CommClientFactory to remove
	  duplicated code.

	* server/server.cpp: Use the new style of listener API on the unix
	  socket.
2009-01-28 01:24:57 +00:00
Al Riddoch
f30deb46d8 2009-01-28 Al Riddoch <alriddoch@googlemail.com>
* server/CommListener.cpp, server/CommListener.h: Refactor from
	  a template to a regular class that uses the factories.

	* server/server.cpp: Fix usage of CommListener.
2009-01-28 00:54:13 +00:00
Al Riddoch
662b098aaf 2009-01-27 Al Riddoch <alriddoch@googlemail.com>
* server/CommListener.h, server/CommListener.cpp: Make the
	  Atlas listener a template for handling the various types
	  of socket to use.

	* server/server.cpp: Use the CommListener template correctly.

	* server/CommPeerListener.cpp, server/CommPeerListener.h,
	  server/Makefile.am: Remove the obsolete explicit peer listener
	  from the build.
2009-01-27 23:46:20 +00:00
Al Riddoch
6d690a1157 2009-01-15 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Add commented out code to set up the
	  UpdateTester.
2009-01-15 18:48:20 +00:00
Al Riddoch
b3e38c4ca6 2008-12-11 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Improve the message on a security check failure.
2008-12-11 18:34:13 +00:00
Al Riddoch
245a2e954d 2008-11-17 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Add the call to the storage system restoring
	  the world.
2008-11-17 18:13:05 +00:00
Al Riddoch
8f7d5ec937 2008-11-17 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Use the variable for the default instance
	  name.
2008-11-17 01:24:15 +00:00
Al Riddoch
c0756531ad 2008-11-09 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Improve error reporting, and add settings
	  information to most of the socket failure errors.
2008-11-09 06:21:14 +00:00
Al Riddoch
67a9d94314 2008-11-03 Al Riddoch <alriddoch@googlemail.com>
* common/system.cpp, common/system.h: Add security_init(), a
	  function to initialise any security or crypto related libraries
	  used. This is required by recent version of libgcrypt when
	  using hash functions.

	* server/server.cpp, tests/systemtest.cpp, tools/cypasswd.cpp:
	  Call security_init() in all programs that use security related
	  functions.
2008-11-03 17:12:31 +00:00
Al Riddoch
014b2095ba 2008-10-27 Al Riddoch <alriddoch@googlemail.com>
* configure.ac: Add a check for res_init().

	* server/CommMetaClient.cpp, server/CommMetaClient.h: Refactor
	  the metaserver related code so it retries resolving the address
	  of the metaserver, and then uses the address established later
	  than init time. This provisionally fixes bug #283763 which was
	  that cyphesis would never talk to the metaserver if the name
	  resolution at startup failed.

	* server/server.cpp: Modify the way MetaClient is set up as it
	  is now not an open socket after initial setup.
2008-10-27 00:53:29 +00:00
Al Riddoch
cd99b94e91 2008-08-29 Al Riddoch <alriddoch@googlemail.com>
* server/CommHttpListener.cpp, server/CommHttpListener.h: New
	  class to listen for http connections.

	* server/CommHttpClient.cpp, server/CommHttpClient.h: New class to
	  handle http requests.

	* server/server.cpp: Hack in a http listen socket on 6780.
2008-08-29 13:03:21 +00:00
Al Riddoch
e3aafac169 2008-08-25 Al Riddoch <alriddoch@googlemail.com>
* server/StorageManager.cpp, server/StorageManager.h,
	  server/servery.cpp: Add a stub function to be used to bootstrap
	  world persistence.
2008-08-25 15:47:11 +00:00
Al Riddoch
4b7b7c6ccc 2008-08-22 Al Riddoch <alriddoch@googlemail.com>
* server/IdleConnector.cpp, server/IdleConnector.h: A generic sigc++
	  based class for functions which need to be called regularly.

	* server/StorageManager.cpp, server/StorageManager.h: Add a method
	  to be called once a second from the idler.

	* server/server.cpp: Hook the idler up to storage manager.
2008-08-22 18:59:06 +00:00
Al Riddoch
ea6fda8fcd 2008-08-17 Al Riddoch <alriddoch@googlemail.com>
* server/server.cpp: Try out the StorageManager.
2008-08-17 21:18:45 +00:00