]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hunt/huntd/huntd.6
Minor rearrangement.
[bsdgames-darwin.git] / hunt / huntd / huntd.6
1 .\" $NetBSD: huntd.6,v 1.4 2001/04/04 11:41:01 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
22 controls the multi-player
23 .Xr hunt 6
24 game.
25 When it starts up, it tries to notify all members of the
26 .Em hunt-players
27 mailing list (see
28 .Xr sendmail 8 )
29 by faking a
30 .Xr talk 1
31 request from user
32 .Dq Hunt Game .
33 .Pp
34 The
35 .Fl s
36 option is for running
37 .Nm
38 forever (server mode).
39 This is similar to running it under the control of
40 .Xr inetd 8
41 (see below),
42 but it consumes a process table entry when no one is playing.
43 .Pp
44 The
45 .Fl p
46 option changes the udp port number used to rendezvous with the player
47 process and thus allows for private games of hunt.
48 This option turns off the notification of players on the
49 .Em hunt-players
50 mailing list.
51 .Sh INETD
52 To run
53 .Nm
54 from
55 .Xr inetd 8 ,
56 you'll need to
57 .\"put the
58 .\".Nm hunt
59 .\"service in
60 .\".Pa /etc/services :
61 .\".Bd -literal
62 .\"hunt 26740/udp # multi-player/multi-host mazewars
63 .\".Ed
64 .\"and
65 uncomment the following line in
66 .Pa /etc/inetd.conf :
67 .Bd -literal -offset indent -compact
68 hunt dgram udp wait nobody /usr/games/huntd huntd
69 .Ed
70 Do not use any of the command line options \(em if you want
71 .Xr inetd 8
72 to start up
73 .Nm
74 on a private port, change the port listed for
75 .Nm hunt
76 in
77 .Pa /etc/services .
78 .Sh NETWORK RENDEZVOUS
79 When
80 .Xr hunt 6
81 starts up, it broadcasts on the local area net
82 (using the broadcast address for each interface) to find a
83 .Nm hunt
84 game in progress.
85 If a
86 .Nm
87 hears the request, it sends back the port number for the
88 .Nm hunt
89 process to connect to.
90 Otherwise, the
91 .Nm hunt
92 process starts up a
93 .Nm
94 on the local machine and trys to rendezvous with it.
95 .Sh SEE ALSO
96 .Xr talk 1 ,
97 .Xr hunt 6 ,
98 .Xr sendmail 8
99 .Sh AUTHORS
100 Conrad Huang, Ken Arnold, and Greg Couch;
101 .br
102 University of California, San Francisco, Computer Graphics Lab
103 .\"Sh BUGS