9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@gmx.de (cinap_lenrek at gmx.de)
Subject: [9fans] new dial, cs and dns for ipv6
Date: Sat, 19 Mar 2011 00:20:12 +0100	[thread overview]
Message-ID: <ac96f51710d0b2d48c59d46b72a43f9d@gmx.de> (raw)
In-Reply-To: <6030ca036e779c5485206f8027ec1376@gmx.de>

theres a first attempt of a parallel dial implementation that doesnt
need shared memory to coordinate the the spawning:

/n/sources/contrib/cinap_lenrek/dial.c

it will run at maximum Maxconcurr connects in parallel at a time
until there are no more addresses to connect to left, a connection
is established or it got interrupted.

if there is only one address, it will not fork and do synchronous
connect.

its not more complicated than the shared memory version in my opinion
and will work with libthread programs without any tricks.

--
cinap




  reply	other threads:[~2011-03-18 23:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17 19:42 geoff at plan9.bell-labs.com
2011-03-17 20:04 ` erik quanstrom
2011-03-17 20:23 ` cinap_lenrek at gmx.de
2011-03-17 20:57   ` cinap_lenrek at gmx.de
2011-03-17 20:59   ` geoff at plan9.bell-labs.com
2011-03-17 21:12     ` cinap_lenrek at gmx.de
2011-03-17 21:38     ` erik quanstrom
2011-03-17 22:11       ` cinap_lenrek at gmx.de
2011-03-18 23:20         ` cinap_lenrek at gmx.de [this message]
2011-03-18 23:39           ` erik quanstrom

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=ac96f51710d0b2d48c59d46b72a43f9d@gmx.de \
    --to=cinap_lenrek@gmx.de \
    /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).