Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VANILLA-L:777] Re: [VANILLA-L:776] Re: [VANILLA-L:774] netrek.org, metaserver and stuff



Bob Tanner wrote:
> I believe the soliciting code was crashing the metaserver. That does
> not explain why it was not in 2.7pl7 :).

Actually, the soliciting/solicitation code is in 2.7pl7, as module
ntserv/solicit.c, but requires the presence of a .metaservers file
before it works.

The format of the file is a series of space delimited fields interpreted
using fscanf().  The code looks for the file in the current working
directory rather than LIBDIR.  Ought to be fixed.

The .metaservers file for one of my internal servers is ...

metaserver.stl.dec.com 3521 0 60 netrek.stl.dec.com B 2592 3592 open

The order and format of the fields is described in ntserv/solicit.c

    /* data items derived from metaservers file */
    char host[32];          /* address of metaserver (DNS)          */
    int port;               /* port of metaserver                   */
    int minimum;            /* minimum update time                  */
    int maximum;            /* maximum update time                  */
    char ours[32];          /* DNS address of server                */
    char type[2];           /* server type code (B/P/C/H/?)         */
    int pport;              /* server main player port (e.g. 2592)  */
    int oport;              /* server observer player port          */
    char comment[32];       /* comment string                       */

I ought to put this in the documentation, but I was hoping to finish it
first.

Is Nick on this distribution list?  ;-}

--
James Cameron                                    (cameron@stl.dec.com)
Digital Equipment Corporation (Australia) Pty. Ltd. A.C.N. 000 446 800
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com


References: