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 20:22:53 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <9D494044-F5FA-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> <89D0BF0E-F5C0-11D8-93F2-000D932C78D8@lurchi.franken.de> <95CA6528-F5CB-11D8-93F2-000D932C78D8@lurchi.franken.de> 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 1093371821 8713 80.91.224.253 (24 Aug 2004 18:23:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 18:23:41 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 24 20:23:17 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 1Bzfwy-0001Ni-00 for ; Tue, 24 Aug 2004 20:23:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bzg1S-0000JI-Rq for guile-devel@m.gmane.org; Tue, 24 Aug 2004 14:27:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bzg1Q-0000If-G1 for guile-devel@gnu.org; Tue, 24 Aug 2004 14:27:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bzg1O-0000IS-Vl for guile-devel@gnu.org; Tue, 24 Aug 2004 14:27:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bzg1O-0000IP-Sc for guile-devel@gnu.org; Tue, 24 Aug 2004 14:27:50 -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 1Bzfwh-000478-K5 for guile-devel@gnu.org; Tue, 24 Aug 2004 14:23:00 -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 514E2245C9; Tue, 24 Aug 2004 20:22:57 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: Original-To: Marius Vollmer 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:4031 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4031 Marius, see my comments in-line. Best regards Michael On Aug 24, 2004, at 4:24 PM, Marius Vollmer wrote: > Michael Tuexen writes: > >> with the hints of Kevin I got my stuff working. > > Excellent, and please accept my apologies for doing such a louse job > with the first attempt. I forgot to include sctp.scm in the tarball, > here it is for reference: No problem. I did not figured out that I had to use load-extension. I was playing with dynamic-args-call from http://www.gnu.org/software/guile/docs/guile-ref/Low-level-dynamic- linking.html#Low%20level%20dynamic%20linking which was not that appropriate. > > (define-module (net sctp)) > > (export sctp-recvmsg! > sctp-sendmsg > > SOCK_SEQPACKET > > IPPROTO_SCTP > IPPROTO_TCP > IPPROTO_UDP > > MSG_UNORDERED > MSG_ADDR_OVER > MSG_ABORT > MSG_EOF > MSG_EOR > MSG_NOTIFICATION > MSG_PR_SCTP_TTL > MSG_PR_SCTP_BUF) > > (load-extension "libguile-net-sctp" "net_sctp_init") > >> I need besides the static functions from socket.c the >> SCM_SYSCALL stuff from libguile/_scm.h. This is file is >> not installed. So is there a chance to move the SCM_SYSCALL >> stuff from _scm.h to __scm.h? If not, I have to duplicate >> the code, which is not a problem... > > Yes, please duplicate. SCM_SYSCALL is more of an internal helper for > boilerplate code that unrelated to Guile. OK. > >> I have another question: How can I make the documentation included >> in the SCM_DEFINE makro available from scheme. > > I don't think there is a good way yet. Which is really bad, bad, bad, > I know. Leave your docstring in place and hope that you will soon be > able to use it. OK. I was not sure if I had to do something 'magic' in the sctp.scm file. > _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel