aitown-index is a command-line utility that is capable of storing a list of servers. Clients only need to know the address of the index server, querry it for the list of servers that it knows about and let the user choose one. Each entry in the list consists of a name, an address and a port. To invoke it, use following general form:
aitown-index [options]
Command line optionsServers advertise their presence to the index server and are required to inform the index server when they are closed. However, a server being listed in the index does not guarantee to the client that the server is up and running (ie. there is no "hartbeat" system to allow the index server to determine wether the server crashed). List of options:
Config fileAt load time, before reading command line options, the program looks for a configuration file named aitown-index.conf in current directory then in an operating system dependednt configuration directory (something like ~/.config/aitown-index.conf in unix, C:\Users\USERNAME\AppData\aitown-index\aitown-index.conf in Windows). The config file consists of [sections] and value=key entries (see the example at the end of the section).
[general]
; the port to use for index server port = 29777 ; reject requests at this watermark maximum_number_of_servers = 100 For each setting, the command line takes precedence, then the value in config file and then the default value. Thus, if different ports are indicated by the config file and by the command line, the one on the command line is used.
|