From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 31 Jan 2011 09:23:58 -0800 From: Anthony Martin To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110131172358.GA3993@dinah> References: <94428b1d-840a-4c0d-9954-035558591826@l22g2000pre.googlegroups.com> <20110131101550.GA3109@fangle.proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110131101550.GA3109@fangle.proxima.alt.za> Subject: Re: [9fans] UDP echo server sample code Topicbox-Message-UUID: a463ec0e-ead6-11e9-9d60-3106f5b1d025 Lucio De Re once said: > On Mon, Jan 31, 2011 at 09:45:44AM +0000, ish wrote: > > > > afd = announce("udp!*!1234", adir); > > > > and?? > > ... > while (read (afd, ...) > 0) { > write (afd, ...); > } > > ... sort of thing? This works if you write "headers" to the control file after the announce. Otherwise, you still need to do the listen and accept. See ip(3) for more. Anthony