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 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), 42but it consumes a process table entry when no one is playing. 43.Pp 44The 45.Fl p 46option changes the udp port number used to rendezvous with the player 47process and thus allows for private games of hunt. 48This option turns off the notification of players on the 49.Em hunt-players 50mailing list. 51.Sh INETD 52To run 53.Nm 54from 55.Xr inetd 8 , 56you'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 65uncomment the following line in 66.Pa /etc/inetd.conf : 67.Bd -literal -offset indent -compact 68hunt dgram udp wait nobody /usr/games/huntd huntd 69.Ed 70Do not use any of the command line options \(em if you want 71.Xr inetd 8 72to start up 73.Nm 74on a private port, change the port listed for 75.Nm hunt 76in 77.Pa /etc/services . 78.Sh NETWORK RENDEZVOUS 79When 80.Xr hunt 6 81starts up, it broadcasts on the local area net 82(using the broadcast address for each interface) to find a 83.Nm hunt 84game in progress. 85If a 86.Nm 87hears the request, it sends back the port number for the 88.Nm hunt 89process to connect to. 90Otherwise, the 91.Nm hunt 92process starts up a 93.Nm 94on 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 100Conrad Huang, Ken Arnold, and Greg Couch; 101.br 102University of California, San Francisco, Computer Graphics Lab 103.\"Sh BUGS 104