9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Skip Tavakkolian" <fst@centurytel.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9p srv-ing on a port
Date: Fri, 16 Jan 2004 16:56:50 -0800	[thread overview]
Message-ID: <7903b150795a13800e12d9942dec1469@centurytel.net> (raw)
In-Reply-To: <a9700a6b8c0098292a15f4f84aee65fa@plan9.ucalgary.ca>

> Is it possible (i.e.  simple enough) to set up a 9p server that will
> work on a port a-la fossil/kfs?
>
> Instead of doing postmountsrv() is it possible to do listen() -
> accept() - fork and srv(s) with the network fd?  What should s->infd
> and s->outfd be set to in this case?

If I understand correctly, the following will work:

If you have a corresponding /bin/service/tcpXXXX script just launch
your server, then you could have an option for your server where it uses
the stdin (opened for read/write) to do the 9P transactions.
Look at cpu -R for example and see how tcp17010 is launched.



      parent reply	other threads:[~2004-01-17  0:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16 23:06 mirtchov
2004-01-17  0:17 ` David Presotto
2004-01-17  0:40   ` mirtchov
2004-01-17  0:56 ` Skip Tavakkolian [this message]

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=7903b150795a13800e12d9942dec1469@centurytel.net \
    --to=fst@centurytel.net \
    --cc=9fans@cse.psu.edu \
    /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).