* Russ Cox <[EMAIL PROTECTED]> wrote:

Hi,

> 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

this doesn't work - gives: malformed address.

seems like dial() doesn't accept socket path names.
I'll have a look if I can fix this ...


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
        http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
        http://patches.metux.de/
---------------------------------------------------------------------

Reply via email to