evennia.server.portal.mssp

MSSP - Mud Server Status Protocol

This implements the MSSP telnet protocol as per http://tintin.sourceforge.net/mssp/. MSSP allows web portals and listings to have their crawlers find the mud and automatically extract relevant information about it, such as genre, how many active players and so on.

class evennia.server.portal.mssp.Mssp(protocol)[源代码]

基类:object

Implements the MSSP protocol. Add this to a variable on the telnet protocol to set it up.

__init__(protocol)[源代码]

initialize MSSP by storing protocol on ourselves and calling the client to see if it supports MSSP.

参数

protocol (Protocol) – The active protocol instance.

get_player_count()[源代码]

Get number of logged-in players.

返回

count (int) – The number of players in the MUD.

get_uptime()[源代码]

Get how long the portal has been online (reloads are not counted).

返回

uptime (int) – Number of seconds of uptime.

no_mssp(option)[源代码]

Called when mssp is not requested. This is the normal operation.

参数

option (Option) – Not used.

do_mssp(option)[源代码]

Negotiate all the information.

参数

option (Option) – Not used.