xref: /netbsd/games/hunt/huntd/huntd.6 (revision c4a72b64)
1.\"	$NetBSD: huntd.6,v 1.6 2002/09/26 18:32:02 wiz Exp $
2.\"
3.\"  Hunt
4.\"  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
5.\"  San Francisco, California
6.\"
7.\"  Copyright (c) 1985 Regents of the University of California.
8.\"  All rights reserved.  The Berkeley software License Agreement
9.\"  specifies the terms and conditions for redistribution.
10.\"
11.Dd April 4, 2001
12.Dt HUNTD 6
13.Sh NAME
14.Nm huntd
15.Nd hunt daemon, back-end for hunt game
16.Sh SYNOPSIS
17.Nm
18.Op Fl s
19.Op Fl p Ar port
20.Sh DESCRIPTION
21.Nm
22controls the multi-player
23.Xr hunt 6
24game.
25When it starts up, it tries to notify all members of the
26.Em hunt-players
27mailing list (see
28.Xr sendmail 8 )
29by faking a
30.Xr talk 1
31request from user
32.Dq Hunt Game .
33.Pp
34The
35.Fl s
36option is for running
37.Nm
38forever (server mode).
39This is similar to running it under the control of
40.Xr inetd 8
41(see below), but it consumes a process table entry when no one is playing.
42.Pp
43The
44.Fl p
45option changes the UDP port number used to rendezvous with the player
46process and thus allows for private games of hunt.
47This option turns off the notification of players on the
48.Em hunt-players
49mailing list.
50.Ss INETD
51To run
52.Nm
53from
54.Xr inetd 8 ,
55you'll need to
56.\"put the
57.\".Nm hunt
58.\"service in
59.\".Pa /etc/services :
60.\".Bd -literal
61.\"hunt 26740/udp		# multi-player/multi-host mazewars
62.\".Ed
63.\"and
64uncomment the following line in
65.Pa /etc/inetd.conf :
66.Bd -literal -offset indent -compact
67hunt dgram udp wait nobody /usr/games/huntd huntd
68.Ed
69Do not use any of the command line options; if you want
70.Xr inetd 8
71to start up
72.Nm
73on a private port, change the port listed for
74.Nm hunt
75in
76.Pa /etc/services .
77.Sh NETWORK RENDEZVOUS
78When
79.Xr hunt 6
80starts up, it broadcasts on the local area net
81(using the broadcast address for each interface) to find a
82.Nm hunt
83game in progress.
84If a
85.Nm
86hears the request, it sends back the port number for the
87.Nm hunt
88process to connect to.
89Otherwise, the
90.Nm hunt
91process starts up a
92.Nm
93on the local machine and tries to rendezvous with it.
94.Sh SEE ALSO
95.Xr talk 1 ,
96.Xr hunt 6 ,
97.Xr sendmail 8
98.Sh AUTHORS
99Conrad Huang, Ken Arnold, and Greg Couch;
100.br
101University of California, San Francisco, Computer Graphics Lab
102