Debian Codegraph @

upstream/opensuse-tumbleweed/man6/huntd.6

raw
1 .\" Automatically generated from hunt/huntd/huntd.6.in. Do not edit.
2 .\" $NetBSD: huntd.6,v 1.7 2003/06/11 12:00:22 wiz Exp $
3 .\"
4 .\" huntd
5 .\"
6 .\" Copyright (c) 1983-2003, Regents of the University of California.
7 .\" All rights reserved.
8 .\"
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions are
11 .\" met:
12 .\"
13 .\" + Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" + Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
18 .\" + Neither the name of the University of California, San Francisco nor
19 .\" the names of its contributors may be used to endorse or promote
20 .\" products derived from this software without specific prior written
21 .\" permission.
22 .\"
23 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
24 .\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
25 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26 .\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27 .\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .\"
35 .Dd April 4, 2001
36 .Dt HUNTD 6
37 .Sh NAME
38 .Nm huntd
39 .Nd hunt daemon, back-end for hunt game
40 .Sh SYNOPSIS
41 .Nm
42 .Op Fl s
43 .Op Fl p Ar port
44 .Sh DESCRIPTION
45 .Nm
46 controls the multi-player
47 .Xr hunt 6
48 game.
49 When it starts up, it tries to notify all members of the
50 .Em hunt-players
51 mailing list (see
52 .Xr sendmail 8 )
53 by faking a
54 .Xr talk 1
55 request from user
56 .Dq Hunt Game .
57 .Pp
58 The
59 .Fl s
60 option is for running
61 .Nm
62 forever (server mode).
63 This is similar to running it under the control of
64 .Xr inetd 8
65 (see below), but it consumes a process table entry when no one is playing.
66 .Pp
67 The
68 .Fl p
69 option changes the UDP port number used to rendezvous with the player
70 process and thus allows for private games of hunt.
71 This option turns off the notification of players on the
72 .Em hunt-players
73 mailing list.
74 .Ss INETD
75 To run
76 .Nm
77 from
78 .Xr inetd 8 ,
79 you'll need to
80 put the
81 .Nm hunt
82 service in
83 .Pa /etc/services :
84 .Bd -literal
85 hunt 26740/udp # multi-player/multi-host mazewars
86 .Ed
87 and
88 add the following line to
89 .Pa /etc/inetd.conf :
90 .Bd -literal -offset indent -compact
91 hunt dgram udp wait nobody /usr/games/huntd huntd
92 .Ed
93 Do not use any of the command line options; if you want
94 .Xr inetd 8
95 to start up
96 .Nm
97 on a private port, change the port listed for
98 .Nm hunt
99 in
100 .Pa /etc/services .
101 .Sh NETWORK RENDEZVOUS
102 When
103 .Xr hunt 6
104 starts up, it broadcasts on the local area net
105 (using the broadcast address for each interface) to find a
106 .Nm hunt
107 game in progress.
108 If a
109 .Nm
110 hears the request, it sends back the port number for the
111 .Nm hunt
112 process to connect to.
113 Otherwise, the
114 .Nm hunt
115 process starts up a
116 .Nm
117 on the local machine and tries to rendezvous with it.
118 .Sh SEE ALSO
119 .Xr talk 1 ,
120 .Xr hunt 6 ,
121 .Xr sendmail 8
122 .Sh AUTHORS
123 Conrad Huang, Ken Arnold, and Greg Couch;
124 .br
125 University of California, San Francisco, Computer Graphics Lab