9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] UDP echo server sample code
Date: Mon, 31 Jan 2011 09:23:58 -0800	[thread overview]
Message-ID: <20110131172358.GA3993@dinah> (raw)
In-Reply-To: <20110131101550.GA3109@fangle.proxima.alt.za>

Lucio De Re <lucio@proxima.alt.za> 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



  reply	other threads:[~2011-01-31 17:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31  9:45 ish
2011-01-31 10:15 ` Lucio De Re
2011-01-31 17:23   ` Anthony Martin [this message]
2011-01-31 17:45 ` ish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110131172358.GA3993@dinah \
    --to=ality@pbrane.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).