1998-01-09 11:03:16 +03:00
|
|
|
.\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $
|
|
|
|
.\"
|
1997-10-04 13:00:13 +04:00
|
|
|
.\" Hunt
|
|
|
|
.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
|
|
|
|
.\" San Francisco, California
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1985 Regents of the University of California.
|
|
|
|
.\" All rights reserved. The Berkeley software License Agreement
|
|
|
|
.\" specifies the terms and conditions for redistribution.
|
|
|
|
.\"
|
|
|
|
.TH HUNTD 6 "21 August 1986"
|
|
|
|
.UC 4
|
|
|
|
.SH NAME
|
|
|
|
huntd \- hunt daemon, back-end for hunt game
|
|
|
|
.SH SYNOPSIS
|
1997-10-04 13:16:27 +04:00
|
|
|
\fB/usr/games/huntd\fP [ \fB\-s\fP ] [ \fB\-p\fP port ]
|
1997-10-04 13:00:13 +04:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
.I huntd
|
|
|
|
controls the multi-player
|
|
|
|
.IR hunt (6)
|
|
|
|
game.
|
|
|
|
When it starts up, it tries to notify all members of the
|
|
|
|
.I hunt-players
|
|
|
|
mailing list (see
|
|
|
|
.IR sendmail (8))
|
|
|
|
by faking a
|
|
|
|
.IR talk (1)
|
|
|
|
request from user ``Hunt Game''.
|
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.B \-s
|
|
|
|
option is for running
|
|
|
|
.I huntd
|
|
|
|
forever (server mode).
|
|
|
|
This is similar to running it under the control of
|
|
|
|
.I inetd
|
|
|
|
(see below),
|
|
|
|
but it consumes a process table entry when no one is playing.
|
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.B \-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
|
|
|
|
.I hunt-players
|
|
|
|
mailing list.
|
|
|
|
.SH INETD
|
|
|
|
.PP
|
|
|
|
To run
|
|
|
|
.I huntd
|
|
|
|
from
|
|
|
|
.IR inetd ,
|
|
|
|
you'll need to put the
|
|
|
|
.I hunt
|
|
|
|
service in
|
|
|
|
.BR /etc/services :
|
|
|
|
.IP
|
|
|
|
hunt 26740/udp # multi-player/multi-host mazewars
|
|
|
|
.LP
|
|
|
|
and add a line in
|
|
|
|
.BR /etc/inetd.conf :
|
|
|
|
.IP
|
1997-10-04 13:16:27 +04:00
|
|
|
hunt dgram udp wait nobody /usr/games/huntd HUNT
|
1997-10-04 13:00:13 +04:00
|
|
|
.LP
|
|
|
|
except for Suns which use
|
|
|
|
.BR /etc/servers :
|
|
|
|
.IP
|
1997-10-04 13:16:27 +04:00
|
|
|
hunt udp /usr/games/huntd
|
1997-10-04 13:00:13 +04:00
|
|
|
.LP
|
|
|
|
Do not use any of the command line options \(em if you want
|
|
|
|
.I inetd
|
|
|
|
to start up
|
|
|
|
.I huntd
|
|
|
|
on a private port, change the port listed in
|
|
|
|
.BR /etc/services .
|
|
|
|
.SH "NETWORK RENDEZVOUS"
|
|
|
|
When
|
|
|
|
.IR hunt (6)
|
|
|
|
starts up, it broadcasts on the local area net
|
|
|
|
(using the broadcast address for each interface) to find a
|
|
|
|
.I hunt
|
|
|
|
game in progress.
|
|
|
|
If a
|
|
|
|
.I huntd
|
|
|
|
hears the request, it sends back the port number for the
|
|
|
|
.I hunt
|
|
|
|
process to connect to.
|
|
|
|
Otherwise, the
|
|
|
|
.I hunt
|
|
|
|
process starts up a
|
|
|
|
.I huntd
|
|
|
|
on the local machine and trys to rendezvous with it.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
hunt(6), talk(1), sendmail(8)
|
|
|
|
.SH AUTHORS
|
|
|
|
Conrad Huang, Ken Arnold, and Greg Couch;
|
|
|
|
.br
|
|
|
|
University of California, San Francisco, Computer Graphics Lab
|
|
|
|
.\"SH BUGS
|