9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: roger peppe <rogpeppe@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme(4) and addr=dot
Date: Sat,  6 Mar 2010 18:34:14 +0000	[thread overview]
Message-ID: <df49a7371003061034v78789a26r714fdc65839eccb5@mail.gmail.com> (raw)
In-Reply-To: <3e1162e61003060713s1c9cc2c4i1b5e8d7deb9d335e@mail.gmail.com>

On 6 March 2010 15:13, David Leimbach <leimy2k@gmail.com> wrote:
> I think you want to create some kind of redirected handle to the ctl file
> first, then start a new block in rc.  I believe this is how network
> programming in rc can be accomplished in Inferno as well.  Is this not
> allowed in p9p?  I've honestly not used the 9p commands too often.

the nearest you can get to it in p9p is something like:

{
  echo -n 'addr=dot'
  9p read acme/70/addr
} | 9p write acme/70/ctl

but there's no way of guaranteeing that the read
takes place after the write - well, as a hack you can
put a sleep in there, but that's not great...



  parent reply	other threads:[~2010-03-06 18:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-06  3:37 Micah Stetson
2010-03-06 13:11 ` roger peppe
2010-03-06 15:13 ` David Leimbach
2010-03-06 15:16   ` erik quanstrom
2010-03-06 16:21     ` David Leimbach
2010-03-06 16:48       ` erik quanstrom
2010-03-06 19:52         ` David Leimbach
2010-03-06 18:34   ` roger peppe [this message]
2010-03-06 18:41 ` Eoghan Sherry
2010-03-06 18:54   ` Micah Stetson
2010-03-06 18:55   ` ron minnich

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=df49a7371003061034v78789a26r714fdc65839eccb5@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --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).