evennia.server.game_index_client package¶
Submodules¶
evennia.server.game_index_client.client module¶
The client for sending data to the Evennia Game Index
-
class
evennia.server.game_index_client.client.EvenniaGameIndexClient(on_bad_request=None)[source]¶ Bases:
objectThis client class is used for gathering and sending game details to the Evennia Game Index. Since EGI is in the early goings, this isn’t incredibly configurable as far as to what is being sent.
-
class
evennia.server.game_index_client.client.QuietHTTP11ClientFactory(quiescentCallback, metadata)[source]¶ Bases:
twisted.web.client._HTTP11ClientFactorySilences the obnoxious factory start/stop messages in the default client.
-
noisy= False¶
-
-
class
evennia.server.game_index_client.client.SimpleResponseReceiver(status_code, d)[source]¶ Bases:
twisted.internet.protocol.ProtocolUsed for pulling the response body out of an HTTP response.
-
connectionLost(reason=<twisted.python.failure.Failure twisted.internet.error.ConnectionDone: Connection was closed cleanly.>)[source]¶ Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
@type reason: L{twisted.python.failure.Failure}
-
dataReceived(data)[source]¶ Called whenever data is received.
Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
- @param data: a string of indeterminate length. Please keep in mind
that you will probably need to buffer some data, as partial (or multiple) protocol messages may be received! I recommend that unit tests for protocols call through to this method with differing chunk sizes, down to one byte at a time.
-
evennia.server.game_index_client.service module¶
Service for integrating the Evennia Game Index client into Evennia.
-
class
evennia.server.game_index_client.service.EvenniaGameIndexService[source]¶ Bases:
twisted.application.service.ServiceTwisted Service that contains a LoopingCall for regularly sending game details to the Evennia Game Index.
-
_die_on_bad_request()[source]¶ If it becomes apparent that our configuration is generating improperly formed messages to EGI, we don’t want to keep sending bad messages. Stop the service so we’re not wasting resources.
-
name= 'GameIndexClient'¶
-