mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 19:34:49 +00:00
copy in from cvs; cvs2svn fucked up big time
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $
|
||||
.\" $NetBSD: huntd.6,v 1.6 2002/09/26 18:32:02 wiz Exp $
|
||||
.\"
|
||||
.\" Hunt
|
||||
.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
|
||||
@@ -8,93 +8,94 @@
|
||||
.\" 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
|
||||
\fB@sbindir@/huntd\fP [ \fB\-s\fP ] [ \fB\-p\fP port ]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
.I huntd
|
||||
.Dd April 4, 2001
|
||||
.Dt HUNTD 6
|
||||
.Sh NAME
|
||||
.Nm huntd
|
||||
.Nd hunt daemon, back-end for hunt game
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl s
|
||||
.Op Fl p Ar port
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
controls the multi-player
|
||||
.IR hunt (6)
|
||||
.Xr hunt 6
|
||||
game.
|
||||
When it starts up, it tries to notify all members of the
|
||||
.I hunt-players
|
||||
.Em hunt-players
|
||||
mailing list (see
|
||||
.IR sendmail (8))
|
||||
.Xr sendmail 8 )
|
||||
by faking a
|
||||
.IR talk (1)
|
||||
request from user ``Hunt Game''.
|
||||
.PP
|
||||
.Xr talk 1
|
||||
request from user
|
||||
.Dq Hunt Game .
|
||||
.Pp
|
||||
The
|
||||
.B \-s
|
||||
.Fl s
|
||||
option is for running
|
||||
.I huntd
|
||||
.Nm
|
||||
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
|
||||
.Xr inetd 8
|
||||
(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
|
||||
.Fl 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
|
||||
.Em hunt-players
|
||||
mailing list.
|
||||
.SH INETD
|
||||
.PP
|
||||
.Ss INETD
|
||||
To run
|
||||
.I huntd
|
||||
.Nm
|
||||
from
|
||||
.IR inetd ,
|
||||
you'll need to put the
|
||||
.I hunt
|
||||
.Xr inetd 8 ,
|
||||
you'll need to
|
||||
put the
|
||||
.Nm hunt
|
||||
service in
|
||||
.BR /etc/services :
|
||||
.IP
|
||||
.Pa /etc/services :
|
||||
.Bd -literal
|
||||
hunt 26740/udp # multi-player/multi-host mazewars
|
||||
.LP
|
||||
and add a line in
|
||||
.BR /etc/inetd.conf :
|
||||
.IP
|
||||
hunt dgram udp wait nobody @sbindir@/huntd HUNT
|
||||
.LP
|
||||
except for Suns which use
|
||||
.BR /etc/servers :
|
||||
.IP
|
||||
hunt udp @sbindir@/huntd
|
||||
.LP
|
||||
Do not use any of the command line options \(em if you want
|
||||
.I inetd
|
||||
.Ed
|
||||
and
|
||||
add the following line to
|
||||
.Pa /etc/inetd.conf :
|
||||
.Bd -literal -offset indent -compact
|
||||
hunt dgram udp wait nobody @sbindir@/huntd huntd
|
||||
.Ed
|
||||
Do not use any of the command line options; if you want
|
||||
.Xr inetd 8
|
||||
to start up
|
||||
.I huntd
|
||||
on a private port, change the port listed in
|
||||
.BR /etc/services .
|
||||
.SH "NETWORK RENDEZVOUS"
|
||||
.Nm
|
||||
on a private port, change the port listed for
|
||||
.Nm hunt
|
||||
in
|
||||
.Pa /etc/services .
|
||||
.Sh NETWORK RENDEZVOUS
|
||||
When
|
||||
.IR hunt (6)
|
||||
.Xr hunt 6
|
||||
starts up, it broadcasts on the local area net
|
||||
(using the broadcast address for each interface) to find a
|
||||
.I hunt
|
||||
.Nm hunt
|
||||
game in progress.
|
||||
If a
|
||||
.I huntd
|
||||
.Nm
|
||||
hears the request, it sends back the port number for the
|
||||
.I hunt
|
||||
.Nm hunt
|
||||
process to connect to.
|
||||
Otherwise, the
|
||||
.I hunt
|
||||
.Nm 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
|
||||
.Nm
|
||||
on the local machine and tries to rendezvous with it.
|
||||
.Sh SEE ALSO
|
||||
.Xr talk 1 ,
|
||||
.Xr hunt 6 ,
|
||||
.Xr sendmail 8
|
||||
.Sh AUTHORS
|
||||
Conrad Huang, Ken Arnold, and Greg Couch;
|
||||
.br
|
||||
University of California, San Francisco, Computer Graphics Lab
|
||||
.\"SH BUGS
|
||||
|
||||
Reference in New Issue
Block a user