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: Thu, 19 Aug 2004 20:34:17 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <60ADA546-F20E-11D8-A47A-000D932C78D8@lurchi.franken.de> References: <28C61BE4-EB92-11D8-9129-000D932C78D8@lurchi.franken.de> <87657jc3v2.fsf@zip.com.au> <87oel9fhv9.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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092940511 19111 80.91.224.253 (19 Aug 2004 18:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 18:35:11 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Aug 19 20:35:01 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 1Bxrkb-0004Ap-00 for ; Thu, 19 Aug 2004 20:35:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxror-000158-IZ for guile-devel@m.gmane.org; Thu, 19 Aug 2004 14:39:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxrod-00012d-Dv for guile-devel@gnu.org; Thu, 19 Aug 2004 14:39:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxrob-00011e-80 for guile-devel@gnu.org; Thu, 19 Aug 2004 14:39:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxrob-00011b-2c for guile-devel@gnu.org; Thu, 19 Aug 2004 14:39:09 -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 1Bxrk8-00014x-VW for guile-devel@gnu.org; Thu, 19 Aug 2004 14:34:33 -0400 Original-Received: from [192.168.1.22] (p5089FD4D.dip.t-dialin.net [80.137.253.77]) by ilsa.franken.de (Postfix) with ESMTP id 17742245C5; Thu, 19 Aug 2004 20:34:28 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: <87oel9fhv9.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:3983 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3983 Hi Kevin, that is great. I thought once again about including /* protocol numbers */ #ifdef IPPROTO_SCTP scm_c_define ("IPPROTO_SCTP", SCM_MAKINUM (IPPROTO_SCTP)); #endif #ifdef IPPROTO_TCP scm_c_define ("IPPROTO_TCP", SCM_MAKINUM (IPPROTO_TCP)); #endif #ifdef IPPROTO_UDP scm_c_define ("IPPROTO_UDP", SCM_MAKINUM (IPPROTO_UDP)); #endif in socket.c. The argument, to use a function like getprotobyname to perform a lookup in /etc/protocols, is not valid in my opinion. The reason is, that besides I have not seen that, that the constants above are defined in /usr/include/netinet/in.h and are used. So if, a system (I do not know of any such system), uses a different number for TCP, this number will not only be in /etc/protocols, but also in /usr/include/netinet/in.h. A different story are port numbers. They can (and should) be looked up in /etc/services. There are no constants describing the port number for an echo server... Best regards Michael On Aug 18, 2004, at 1:46 AM, Kevin Ryde wrote: > Michael Tuexen writes: >> >>>> #ifdef SOCK_SEQPACKET >>>> scm_c_define ("SOCK_SEQPACKET", SCM_MAKINUM (SOCK_SEQPACKET)); >>>> #endif > > I added that, and SOCK_RDM at the same time to both the cvs and 1.6. > _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel