From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Mon, 31 Jan 2011 17:45:08 +0000 From: ish Message-ID: <2c5c6270-b9f9-4e01-8a3f-902d047eddff@d11g2000yql.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <94428b1d-840a-4c0d-9954-035558591826@l22g2000pre.googlegroups.com> Subject: Re: [9fans] UDP echo server sample code Topicbox-Message-UUID: a4d7068a-ead6-11e9-9d60-3106f5b1d025 On Jan 31, 12:28=A0pm, al...@pbrane.org (Anthony Martin) wrote: > Lucio De Re once said: > > > On Mon, Jan 31, 2011 at 09:45:44AM +0000, ish wrote: > > > > =A0 =A0afd =3D announce("udp!*!1234", adir); > > > > =A0 =A0and?? > > > ... > > while (read (afd, ...) > 0) { > > =A0 =A0write (afd, ...); > > } > > > ... sort of thing? > > This works if you write "headers" to the control > file after the announce. Is adir/ctl the control file? -ishwar Otherwise, you still need > to do the listen and accept. See ip(3) for more. > > =A0 Anthony