diff options
author | wiz <wiz@NetBSD.org> | 2001-04-04 11:41:01 +0000 |
---|---|---|
committer | wiz <wiz@NetBSD.org> | 2001-04-04 11:41:01 +0000 |
commit | 773147a0b63f42601976da31aea2bed0f29bef9e (patch) | |
tree | afe52aba5828b15eb2b81ce95a8eaad2c76f726e /hunt/huntd/huntd.6 | |
parent | 704f881231cf3b4004897ee3bfa98e7bdeeb5b71 (diff) | |
download | bsdgames-darwin-773147a0b63f42601976da31aea2bed0f29bef9e.tar.gz bsdgames-darwin-773147a0b63f42601976da31aea2bed0f29bef9e.tar.zst bsdgames-darwin-773147a0b63f42601976da31aea2bed0f29bef9e.zip |
mdoc'ify.
Diffstat (limited to 'hunt/huntd/huntd.6')
-rw-r--r-- | hunt/huntd/huntd.6 | 119 |
1 files changed, 61 insertions, 58 deletions
diff --git a/hunt/huntd/huntd.6 b/hunt/huntd/huntd.6 index c51a8c0c..a825a162 100644 --- a/hunt/huntd/huntd.6 +++ b/hunt/huntd/huntd.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $ +.\" $NetBSD: huntd.6,v 1.4 2001/04/04 11:41:01 wiz Exp $ .\" .\" Hunt .\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -8,93 +8,96 @@ .\" 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/usr/games/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 +.Xr inetd 8 (see below), but it consumes a process table entry when no one is playing. -.PP +.Pp The -.B \-p +.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 +.Sh INETD To run -.I huntd +.Nm 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 -hunt dgram udp wait nobody /usr/games/huntd HUNT -.LP -except for Suns which use -.BR /etc/servers : -.IP -hunt udp /usr/games/huntd -.LP +.Xr inetd 8 , +you'll need to +.\"put the +.\".Nm hunt +.\"service in +.\".Pa /etc/services : +.\".Bd -literal +.\"hunt 26740/udp # multi-player/multi-host mazewars +.\".Ed +.\"and +uncomment the following line in +.Pa /etc/inetd.conf : +.Bd -literal -offset indent -compact +hunt dgram udp wait nobody /usr/games/huntd huntd +.Ed Do not use any of the command line options \(em if you want -.I inetd +.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 +.Nm on the local machine and trys to rendezvous with it. -.SH "SEE ALSO" -hunt(6), talk(1), sendmail(8) -.SH AUTHORS +.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 +.\"Sh BUGS |