9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ty ty <ash_666@bk.ru>
To: 9fans <9fans@9fans.net>
Subject: [9fans]  Re:  [9ans] Question about network protocols
Date: Thu, 29 Oct 2009 02:04:46 +0300	[thread overview]
Message-ID: <E1N3HZO-0006Fj-00.ash_666-bk-ru@f13.mail.ru> (raw)

Thanks!
it becomes more clear for me.  But i still don't undrstand some things.

1) as i understand, protocol initialization occurs in ipgetfs, which not used anywhere, except
ipattach function in same file (devip.c). ipattach, in turn, member of ipdevtab struct and latter
isn't used anywhere too (i haven't found any with grep).
It seems me strange, but at this point i assume, theese actions take place at system start up (this
not true, i think).

2) it remains unclear for me where the connection establish, and where ilconnect or tcpconnect take
place. as i think, they should be called for open connections, working on on of these protocols. i
dont find anything relevant and don't understand, how system choose protocol for some work.

3) with your reference on ipgetfs i'm googled presentation [1], a little explaining to me the
mechanism of choice.
name = netmkaddr("133.137.166.17", "udp", "echo");
netmkaddr takes the text name of protocol and, as i saw in sources, and passes it to fprint, which
call vfprint, which, in turn, call dofmt. As i understand, dofmt is some internal machinery for
parse format string and decide to use the appropriate protocol. But I did not see where a
connection is opened or something like that.
Is my assumption about fprint and dofmt true?
where i can read about internal system processes, which managed network connections?
and where, nevertheless, a connection is opened? :)
Excuse my english and, maybe incomprehensible exposition of ideas, it's deep night in Moscow now :)

Thanks.

[1] -- http://www.tip9ug.jp/meetings/udp-12Nov05/plan9udp.ppt



             reply	other threads:[~2009-10-28 23:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 23:04 ty ty [this message]
2009-10-29 17:30 ` [9fans] " matt

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=E1N3HZO-0006Fj-00.ash_666-bk-ru@f13.mail.ru \
    --to=ash_666@bk.ru \
    --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).