man huntd (Jeux) - huntd
NAME
SYNOPSIS
DESCRIPTION
controls the multi-player hunt() game. When it starts up, it tries to notify all members of the mailing list (see sendmail(8) ) by faking a talk() request from user
The -s option is for running forever (server mode). This is similar to running it under the control of inetd() (see below), but it consumes a process table entry when no one is playing.
The -p option changes the UDP port number used to rendezvous with the player process and thus allows for private games of hunt. This option turns off the notification of players on the mailing list.
INETD
To run from inetd(8) , you'll need to put the hunt service in /etc/services : hunt 26740/udp # multi-player/multi-host mazewars and add the following line to /etc/inetd.conf : hunt dgram udp wait nobody /usr/sbin/huntd huntd Do not use any of the command line options; if you want inetd() to start up on a private port, change the port listed for hunt in /etc/services .
NETWORK RENDEZVOUS
When hunt() starts up, it broadcasts on the local area net (using the broadcast address for each interface) to find a hunt game in progress. If a hears the request, it sends back the port number for the hunt process to connect to. Otherwise, the hunt process starts up a on the local machine and tries to rendezvous with it.
SEE ALSO
AUTHORS
Conrad Huang, Ken Arnold, and Greg Couch;
University of California, San Francisco, Computer Graphics Lab