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:43:55 +0200

----------  Forwarded Message  ----------
Return-Path: <help-hurd-admin@gnu.org>
Received: from fencepost.gnu.org ([199.232.76.164]) by mailin07.sul.t-online.de
        with esmtp id 156tMn-0L7jwea; Mon, 4 Jun 2001 14:21:53 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156tJ5-0007GV-00; Mon, 04 Jun 2001 08:18:03 -0400
Received: from mailout03.sul.t-online.com ([194.25.134.81] 
helo=mailout03.sul.t-online.de)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156tHJ-0007FH-00
        for <help-hurd@gnu.org>; Mon, 04 Jun 2001 08:16:13 -0400
Received: from fwd05.sul.t-online.de 
        by mailout03.sul.t-online.de with smtp 
        id 156tHI-0006Dj-0I; Mon, 04 Jun 2001 14:16:12 +0200
Received: from odin (320068295437-0001@[217.81.139.166]) by 
fwd05.sul.t-online.com
        with smtp id 156tHF-28re7MC; Mon, 4 Jun 2001 14:16:09 +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: <01060414191100.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:19:11 +0200

UNSUBSCRIBE

----------  Forwarded Message  ----------
Return-Path: <help-hurd-admin@gnu.org>
Received: from fencepost.gnu.org ([199.232.76.164]) by 
mailin02.sul.t-online.de
        with esmtp id 156id6-1NdMIqa; Mon, 4 Jun 2001 02:54:00 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156iUW-0005K0-00; Sun, 03 Jun 2001 20:45:08 -0400
Received: from mail2.netinsight.se ([212.209.170.195] 
helo=ernst.netinsight.se)
        by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
        id 156iT3-0005HJ-00
        for <help-hurd@gnu.org>; Sun, 03 Jun 2001 20:43:37 -0400
Received: from netinsight.se (unverified [10.100.1.28]) by ernst.netinsight.se
 (EMWAC SMTPRS 0.83) with SMTP id <B0001335675@ernst.netinsight.se>;
 Mon, 04 Jun 2001 02:43:31 +0200
Message-ID: <3B1AD9E6.4404C9F5@netinsight.se>
From: Johan Rydberg <johan.rydberg@netinsight.se>
Organization: Net Insight AB
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: zh-TW, zh-CN, sv, en
MIME-Version: 1.0
To: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
CC: help-hurd@gnu.org
Subject: Re: named ports <-> trivfs translator!
References: <3B1917B9.9538A457@netinsight.se> 
<20010603202729.A4223@212.23.136.22>
Content-Type: text/plain;
  charset=us-ascii
Content-Transfer-Encoding: 7bit
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, 04 Jun 2001 02:44:22 +0200
Status: R 
X-Status: N

Marcus Brinkmann wrote:

> 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).

I went with the latter and it seems to work.  Thanks.  Next question:

Take a look at the following scenario:

  1. allocate object
  2. client does something with object
  3. deallocate object

I have created a port class with a custom clean routine.  I want the clean
routine to be called if the object are NOT deallocated in step 3 (for 
example, 
the client dies).  Is this possible - or do I have hold an internal state for
every port?

regards,
johan


-- 
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME

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

Marcus Brinkmann wrote:
> 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).

I went with the latter and it seems to work.  Thanks.  Next question:

Take a look at the following scenario:

  1. allocate object
  2. client does something with object
  3. deallocate object

I have created a port class with a custom clean routine.  I want the clean
routine to be called if the object are NOT deallocated in step 3 (for
 example, the client dies).  Is this possible - or do I have hold an internal
 state for every port?

regards,
johan


--
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME

_______________________________________________
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
mailin02.sul.t-online.de
        with esmtp id 156id6-1NdMIqa; Mon, 4 Jun 2001 02:54:00 +0200
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 156iUW-0005K0-00; Sun, 03 Jun 2001 20:45:08 -0400
Received: from mail2.netinsight.se ([212.209.170.195]
helo=ernst.netinsight.se)
        by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
        id 156iT3-0005HJ-00
        for <help-hurd@gnu.org>; Sun, 03 Jun 2001 20:43:37 -0400
Received: from netinsight.se (unverified [10.100.1.28]) by
 ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id
 <B0001335675@ernst.netinsight.se>; Mon, 04 Jun 2001 02:43:31 +0200
Message-ID: <3B1AD9E6.4404C9F5@netinsight.se>
From: Johan Rydberg <johan.rydberg@netinsight.se>
Organization: Net Insight AB
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: zh-TW, zh-CN, sv, en
MIME-Version: 1.0
To: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
CC: help-hurd@gnu.org
Subject: Re: named ports <-> trivfs translator!
References: <3B1917B9.9538A457@netinsight.se>
<20010603202729.A4223@212.23.136.22>
Content-Type: text/plain;
  charset=us-ascii
Content-Transfer-Encoding: 7bit
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, 04 Jun 2001 02:44:22 +0200
Status: R
X-Status: N

Marcus Brinkmann wrote:
> 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).

I went with the latter and it seems to work.  Thanks.  Next question:

Take a look at the following scenario:

  1. allocate object
  2. client does something with object
  3. deallocate object

I have created a port class with a custom clean routine.  I want the clean
routine to be called if the object are NOT deallocated in step 3 (for
example,
the client dies).  Is this possible - or do I have hold an internal state for
every port?

regards,
johan


--
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME

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

Marcus Brinkmann wrote:
> 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).

I went with the latter and it seems to work.  Thanks.  Next question:

Take a look at the following scenario:

  1. allocate object
  2. client does something with object
  3. deallocate object

I have created a port class with a custom clean routine.  I want the clean
routine to be called if the object are NOT deallocated in step 3 (for
 example, the client dies).  Is this possible - or do I have hold an internal
 state for every port?

regards,
johan


--
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME

_______________________________________________
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]