From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Tuexen Newsgroups: gmane.lisp.guile.devel Subject: Re: Initial SCTP support for the upcoming 1.6.5 release Date: Tue, 24 Aug 2004 13:27:10 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <89D0BF0E-F5C0-11D8-93F2-000D932C78D8@lurchi.franken.de> References: <28C61BE4-EB92-11D8-9129-000D932C78D8@lurchi.franken.de> <02FA4EE0-EFA6-11D8-B63D-000D932C78D8@lurchi.franken.de> <87ekm67wis.fsf@trouble.defaultvalue.org> <58846D32-F2D5-11D8-9904-000D932C78D8@lurchi.franken.de> <87oel2r7p3.fsf@zip.com.au> <3FE09419-F53E-11D8-B290-000D932C78D8@lurchi.franken.de> <87vff9z737.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093346856 2942 80.91.224.253 (24 Aug 2004 11:27:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 11:27:36 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 24 13:27:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BzZSZ-0007G4-00 for ; Tue, 24 Aug 2004 13:27:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BzZX4-0006Pe-35 for guile-devel@m.gmane.org; Tue, 24 Aug 2004 07:32:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BzZWy-0006Of-Ea for guile-devel@gnu.org; Tue, 24 Aug 2004 07:32:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BzZWx-0006Nb-5t for guile-devel@gnu.org; Tue, 24 Aug 2004 07:32:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BzZWx-0006NW-39 for guile-devel@gnu.org; Tue, 24 Aug 2004 07:31:59 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BzZSO-0006av-Qa for guile-devel@gnu.org; Tue, 24 Aug 2004 07:27:17 -0400 Original-Received: from [192.168.1.219] (pD9FF1858.dip.t-dialin.net [217.255.24.88]) by ilsa.franken.de (Postfix) with ESMTP id 4C688245CB; Tue, 24 Aug 2004 13:27:13 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: <87vff9z737.fsf@zip.com.au> Original-To: Kevin Ryde X-Mailer: Apple Mail (2.619) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4019 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4019 Kevin, see my comments below. Best regards Michael On Aug 24, 2004, at 2:57 AM, Kevin Ryde wrote: > Michael Tuexen writes: >> >> Since the set/getsockopt function does not reference any specific >> structure >> it would be a possibility of have it provided as generic as it is in C >> and >> I would write some scheme functions to transfer the SCTP specific data >> into the generic one. > > It's probably better to make replacement functions that do their > specifics then call the core. > > (If there were many semi-independent modules going to do that then > some sort of hook arrangement would be better, but a replacement will > work initially at least.) So I just define my own setsockopt and it will 'overwrite' the existing one. That'll work. I was not sure if I can just define another function with the same name and that will overwrite the existing one. > >> I have not found an example for C based modules for guile yet. > > load-extension I think, per "A Sample Guile Extension" and "Putting > Extensions into Modules" in the manual. More indexing in the manual > might help when looking for such stuff. I was looking at http://www.gnu.org/software/guile/docs/guile-ref/Dynamic- Libraries.html#Dynamic%20Libraries under the title "Modules" not at "A Whirlwind Tour" where I find under http://www.gnu.org/software/guile/docs/guile-ref/A-Sample-Guile- Extension.html#A%20Sample%20Guile%20Extension the Extension stuff... Thank you very much for the hint. > >> Everything distributed with guile is scheme based, I think. > > Cf srfi/srfi-13 and 14, and guile-readline/ice-9/readline.scm. Ahh. I have not found them. I was looking at ice-9... Thank you very much for your help. > _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel