From: "Russ Cox" <rsc@swtch.com>
To: weigelt@metux.de, 9fans@9fans.net
Subject: Re: [9fans] plan9port: tcp servers
Date: Tue, 27 May 2008 10:44:56 -0400 [thread overview]
Message-ID: <20080527144419.7C2001E8C80@holo.morphisms.net> (raw)
In-Reply-To: <20080526123534.GA10890@nibiru.local>
> I'd like to have some of my fileservers from p9p accessible
> via TCP, but they normally only start on a unix socket.
> How can I get them running on TCP ?
There's no explicit support for this.
If you were to add a -c option to 9pserve
to make it connect to a network address instead of
using stdin/stdout, then you could use 9pserve
to redirect the Unix postings onto TCP.
ARGBEGIN{
...
case 'c':
if((fd = dial(EARGF(usage()), nil, nil, nil)) < 0)
sysfatal("dial %s: %r");
dup(fd, 0);
dup(fd, 1);
if(fd > 1)
close(fd);
break;
...
}ARGEND
Then you could run something like
9pserve -c `namespace`/acme tcp!*!12345
Russ
next prev parent reply other threads:[~2008-05-27 14:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 12:35 Enrico Weigelt
2008-05-27 14:44 ` Russ Cox [this message]
2008-06-01 10:45 ` Enrico Weigelt
2008-06-01 13:00 ` Russ Cox
2008-06-01 13:28 ` Enrico Weigelt
2008-06-01 14:26 ` Russ Cox
2008-06-01 15:41 ` erik quanstrom
2008-06-01 16:04 ` Eric Van Hensbergen
2008-06-04 3:23 ` erik quanstrom
2008-06-05 11:08 ` Enrico Weigelt
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=20080527144419.7C2001E8C80@holo.morphisms.net \
--to=rsc@swtch.com \
--cc=9fans@9fans.net \
--cc=weigelt@metux.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).