Home | History | Annotate | Line # | Download | only in huntd
huntd.6 revision 1.1.1.2
 huntd

Copyright (c) 1983-2003, Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

+ Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
+ Neither the name of the University of California, San Francisco nor
the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

HUNTD 6 "21 August 1986"
C 4
NAME
huntd - hunt daemon, back-end for hunt game
SYNOPSIS
/usr/games/lib/huntd [ -s ] [ -p port ]
DESCRIPTION

huntd controls the multi-player hunt (6) game. When it starts up, it tries to notify all members of the hunt-players mailing list (see sendmail (8)) by faking a talk (1) request from user ``Hunt Game''.

The -s option is for running huntd 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 hunt-players mailing list.

INETD

To run huntd from inetd , you'll need to put the hunt service in /etc/services :

hunt 26740/udp # multi-player/multi-host mazewars

and add a line in /etc/inetd.conf :

hunt dgram udp wait nobody /usr/games/lib/huntd HUNT

except for Suns which use /etc/servers :

hunt udp /usr/games/lib/huntd

Do not use any of the command line options \(em if you want inetd to start up huntd on a private port, change the port listed in /etc/services .

"NETWORK RENDEZVOUS"
When hunt (6) 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 huntd hears the request, it sends back the port number for the hunt process to connect to. Otherwise, the hunt process starts up a huntd on the local machine and trys to rendezvous with it.
"SEE ALSO"
hunt(6), talk(1), sendmail(8)
AUTHORS
Conrad Huang, Ken Arnold, and Greg Couch; University of California, San Francisco, Computer Graphics Lab SH BUGS