]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hunt/huntd/huntd.6
Remove unnecessary casts, and add necessary ones for printf arguments.
[bsdgames-darwin.git] / hunt / huntd / huntd.6
1 .\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry 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 .TH HUNTD 6 "21 August 1986"
12 .UC 4
13 .SH NAME
14 huntd \- hunt daemon, back-end for hunt game
15 .SH SYNOPSIS
16 \fB/usr/games/huntd\fP [ \fB\-s\fP ] [ \fB\-p\fP port ]
17 .SH DESCRIPTION
18 .PP
19 .I huntd
20 controls the multi-player
21 .IR hunt (6)
22 game.
23 When it starts up, it tries to notify all members of the
24 .I hunt-players
25 mailing list (see
26 .IR sendmail (8))
27 by faking a
28 .IR talk (1)
29 request from user ``Hunt Game''.
30 .PP
31 The
32 .B \-s
33 option is for running
34 .I huntd
35 forever (server mode).
36 This is similar to running it under the control of
37 .I inetd
38 (see below),
39 but it consumes a process table entry when no one is playing.
40 .PP
41 The
42 .B \-p
43 option changes the udp port number used to rendezvous with the player
44 process and thus allows for private games of hunt.
45 This option turns off the notification of players on the
46 .I hunt-players
47 mailing list.
48 .SH INETD
49 .PP
50 To run
51 .I huntd
52 from
53 .IR inetd ,
54 you'll need to put the
55 .I hunt
56 service in
57 .BR /etc/services :
58 .IP
59 hunt 26740/udp # multi-player/multi-host mazewars
60 .LP
61 and add a line in
62 .BR /etc/inetd.conf :
63 .IP
64 hunt dgram udp wait nobody /usr/games/huntd HUNT
65 .LP
66 except for Suns which use
67 .BR /etc/servers :
68 .IP
69 hunt udp /usr/games/huntd
70 .LP
71 Do not use any of the command line options \(em if you want
72 .I inetd
73 to start up
74 .I huntd
75 on a private port, change the port listed in
76 .BR /etc/services .
77 .SH "NETWORK RENDEZVOUS"
78 When
79 .IR hunt (6)
80 starts up, it broadcasts on the local area net
81 (using the broadcast address for each interface) to find a
82 .I hunt
83 game in progress.
84 If a
85 .I huntd
86 hears the request, it sends back the port number for the
87 .I hunt
88 process to connect to.
89 Otherwise, the
90 .I hunt
91 process starts up a
92 .I huntd
93 on the local machine and trys to rendezvous with it.
94 .SH "SEE ALSO"
95 hunt(6), talk(1), sendmail(8)
96 .SH AUTHORS
97 Conrad Huang, Ken Arnold, and Greg Couch;
98 .br
99 University of California, San Francisco, Computer Graphics Lab
100 .\"SH BUGS