help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Re: named ports <-> trivfs translator!


From: Anselm Garbe
Subject: Fwd: Re: named ports <-> trivfs translator!
Date: Mon, 4 Jun 2001 15:44:01 +0200

----------  Forwarded Message  ----------
Return-Path: <help-hurd-admin@gnu.org>
Received: from fencepost.gnu.org ([199.232.76.164]) by mailin00.sul.t-online.de
        with esmtp id 156tMg-0sjpc8a; Mon, 4 Jun 2001 14:21:46 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156tJD-0007H6-00; Mon, 04 Jun 2001 08:18:11 -0400
Received: from mailout02.sul.t-online.com ([194.25.134.17] 
helo=mailout02.sul.t-online.de)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156tIy-0007G3-00
        for <help-hurd@gnu.org>; Mon, 04 Jun 2001 08:17:56 -0400
Received: from fwd05.sul.t-online.de 
        by mailout02.sul.t-online.de with smtp 
        id 156tIt-000318-08; Mon, 04 Jun 2001 14:17:51 +0200
Received: from odin (320068295437-0001@[217.81.139.166]) by 
fwd05.sul.t-online.com
        with smtp id 156tIi-2KlhNwC; Mon, 4 Jun 2001 14:17:40 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: anselmg@t-online.de (Anselm Garbe)
To: help-hurd@gnu.org
Subject: Fwd: Re: named ports <-> trivfs translator!
X-Mailer: KMail [version 1.2]
MIME-Version: 1.0
Message-Id: <01060414204203.00328@odin>
Content-Transfer-Encoding: 8bit
X-Sender: 320068295437-0001@t-dialin.net
Sender: help-hurd-admin@gnu.org
Errors-To: help-hurd-admin@gnu.org
X-BeenThere: help-hurd@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:help-hurd-request@gnu.org?subject=help>
List-Post: <mailto:help-hurd@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=subscribe>
List-Id: Users list for the GNU Hurd <help-hurd.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-hurd/>
Date: Mon, 4 Jun 2001 14:20:42 +0200

UNSUBSCRIBE

----------  Forwarded Message  ----------
Return-Path: <help-hurd-admin@gnu.org>
Received: from fencepost.gnu.org ([199.232.76.164]) by 
mailin00.sul.t-online.de
        with esmtp id 156csx-0hVIjQa; Sun, 3 Jun 2001 20:45:59 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156cda-0005at-00; Sun, 03 Jun 2001 14:30:06 -0400
Received: from [212.23.136.22] (helo=localhost)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156cbC-0005W2-00
        for <help-hurd@gnu.org>; Sun, 03 Jun 2001 14:27:38 -0400
Received: from marcus by localhost with local (Exim 3.22 #1 (Debian))
        id 156cb3-00017X-00; Sun, 03 Jun 2001 20:27:29 +0200
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: Johan Rydberg <johan.rydberg@netinsight.se>
Cc: help-hurd@gnu.org
Subject: Re: named ports <-> trivfs translator!
Message-ID: <20010603202729.A4223@212.23.136.22>
References: <3B1917B9.9538A457@netinsight.se>
Mime-Version: 1.0
Content-Type: text/plain;
  charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3B1917B9.9538A457@netinsight.se>
User-Agent: Mutt/1.3.18i
Sender: help-hurd-admin@gnu.org
Errors-To: help-hurd-admin@gnu.org
X-BeenThere: help-hurd@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:help-hurd-request@gnu.org?subject=help>
List-Post: <mailto:help-hurd@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=subscribe>
List-Id: Users list for the GNU Hurd <help-hurd.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-hurd/>
Date: Sun, 3 Jun 2001 20:27:29 +0200
Status: RO
X-Status: O

On Sat, Jun 02, 2001 at 06:43:37PM +0200, Johan Rydberg wrote:
> 
> Hi!
> 
> I'm thinking about implementing a small server.  What is
> the easiest way for a client to get the mach-port for the
> server?  

You can advertise your msg port to the proc server with the proc_setmsgport
RPC (send it to the port you get with getproc() from libc).  Then a client
can get the port with the proc_getmsgport RPC (requires the PID of the
server process).  This is a bit like the Mach nameserver, except you access
by PID rather than some name.

The canonical way to do it on the Hurd is to attach the server to some node
in the filesystem, that means, you write a translator which you attach with
settrans, or you write a program that installs itself as a translator
somewhere. libtrivfs helps a lot for that.  (For the latter, see how pfinet
installs the tunnel "device" in pfinet/tunnel.c (setup_tunnel_device).

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

On Sat, Jun 02, 2001 at 06:43:37PM +0200, Johan Rydberg wrote:
> Hi!
>
> I'm thinking about implementing a small server.  What is
> the easiest way for a client to get the mach-port for the
> server?

You can advertise your msg port to the proc server with the proc_setmsgport
RPC (send it to the port you get with getproc() from libc).  Then a client
can get the port with the proc_getmsgport RPC (requires the PID of the
server process).  This is a bit like the Mach nameserver, except you access
by PID rather than some name.

The canonical way to do it on the Hurd is to attach the server to some node
in the filesystem, that means, you write a translator which you attach with
settrans, or you write a program that installs itself as a translator
somewhere. libtrivfs helps a lot for that.  (For the latter, see how pfinet
installs the tunnel "device" in pfinet/tunnel.c (setup_tunnel_device).

Thanks,
Marcus

--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

-------------------------------------------------------

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

UNSUBSCRIBE

----------  Forwarded Message  ----------
Return-Path: <help-hurd-admin@gnu.org>
Received: from fencepost.gnu.org ([199.232.76.164]) by
mailin00.sul.t-online.de
        with esmtp id 156csx-0hVIjQa; Sun, 3 Jun 2001 20:45:59 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156cda-0005at-00; Sun, 03 Jun 2001 14:30:06 -0400
Received: from [212.23.136.22] (helo=localhost)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156cbC-0005W2-00
        for <help-hurd@gnu.org>; Sun, 03 Jun 2001 14:27:38 -0400
Received: from marcus by localhost with local (Exim 3.22 #1 (Debian))
        id 156cb3-00017X-00; Sun, 03 Jun 2001 20:27:29 +0200
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: Johan Rydberg <johan.rydberg@netinsight.se>
Cc: help-hurd@gnu.org
Subject: Re: named ports <-> trivfs translator!
Message-ID: <20010603202729.A4223@212.23.136.22>
References: <3B1917B9.9538A457@netinsight.se>
Mime-Version: 1.0
Content-Type: text/plain;
  charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3B1917B9.9538A457@netinsight.se>
User-Agent: Mutt/1.3.18i
Sender: help-hurd-admin@gnu.org
Errors-To: help-hurd-admin@gnu.org
X-BeenThere: help-hurd@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:help-hurd-request@gnu.org?subject=help>
List-Post: <mailto:help-hurd@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=subscribe>
List-Id: Users list for the GNU Hurd <help-hurd.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-hurd>,
        <mailto:help-hurd-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-hurd/>
Date: Sun, 3 Jun 2001 20:27:29 +0200
Status: RO
X-Status: O

On Sat, Jun 02, 2001 at 06:43:37PM +0200, Johan Rydberg wrote:
> Hi!
>
> I'm thinking about implementing a small server.  What is
> the easiest way for a client to get the mach-port for the
> server?

You can advertise your msg port to the proc server with the proc_setmsgport
RPC (send it to the port you get with getproc() from libc).  Then a client
can get the port with the proc_getmsgport RPC (requires the PID of the
server process).  This is a bit like the Mach nameserver, except you access
by PID rather than some name.

The canonical way to do it on the Hurd is to attach the server to some node
in the filesystem, that means, you write a translator which you attach with
settrans, or you write a program that installs itself as a translator
somewhere. libtrivfs helps a lot for that.  (For the latter, see how pfinet
installs the tunnel "device" in pfinet/tunnel.c (setup_tunnel_device).

Thanks,
Marcus

--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

On Sat, Jun 02, 2001 at 06:43:37PM +0200, Johan Rydberg wrote:
> Hi!
>
> I'm thinking about implementing a small server.  What is
> the easiest way for a client to get the mach-port for the
> server?

You can advertise your msg port to the proc server with the proc_setmsgport
RPC (send it to the port you get with getproc() from libc).  Then a client
can get the port with the proc_getmsgport RPC (requires the PID of the
server process).  This is a bit like the Mach nameserver, except you access
by PID rather than some name.

The canonical way to do it on the Hurd is to attach the server to some node
in the filesystem, that means, you write a translator which you attach with
settrans, or you write a program that installs itself as a translator
somewhere. libtrivfs helps a lot for that.  (For the latter, see how pfinet
installs the tunnel "device" in pfinet/tunnel.c (setup_tunnel_device).

Thanks,
Marcus

--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

-------------------------------------------------------

_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://mail.gnu.org/mailman/listinfo/help-hurd

-------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]