From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Initial SCTP support for the upcoming 1.6.5 release Date: Fri, 20 Aug 2004 11:13:32 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87llgabohv.fsf@zip.com.au> References: <28C61BE4-EB92-11D8-9129-000D932C78D8@lurchi.franken.de> <87657jc3v2.fsf@zip.com.au> <87oel9fhv9.fsf@zip.com.au> <60ADA546-F20E-11D8-A47A-000D932C78D8@lurchi.franken.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092964465 32542 80.91.224.253 (20 Aug 2004 01:14:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Aug 2004 01:14:25 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 20 03:14:15 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 1Bxxyx-00042Y-00 for ; Fri, 20 Aug 2004 03:14:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxy3E-0000YV-Ut for guile-devel@m.gmane.org; Thu, 19 Aug 2004 21:18:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxy38-0000YG-Bo for guile-devel@gnu.org; Thu, 19 Aug 2004 21:18:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxy37-0000Y4-7Q for guile-devel@gnu.org; Thu, 19 Aug 2004 21:18:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxy37-0000Y1-43 for guile-devel@gnu.org; Thu, 19 Aug 2004 21:18:33 -0400 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BxxyY-0004ep-VO for guile-devel@gnu.org; Thu, 19 Aug 2004 21:13:51 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7K1Dije009674; Fri, 20 Aug 2004 11:13:44 +1000 Original-Received: from localhost (ppp2529.dyn.pacific.net.au [61.8.37.41]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7K1DglY014105; Fri, 20 Aug 2004 11:13:43 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1BxxyH-0000Jb-00; Fri, 20 Aug 2004 11:13:33 +1000 Original-To: Michael Tuexen Mail-Copies-To: never In-Reply-To: <60ADA546-F20E-11D8-A47A-000D932C78D8@lurchi.franken.de> (Michael Tuexen's message of "Thu, 19 Aug 2004 20:34:17 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) 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:3985 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3985 Michael Tuexen writes: > > 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. I don't want to go against the advice of the GNU/Linux man page. It's pretty explicit. > 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... Well I guess both protocol and service numbers for standard stuff are constants. I don't know why one reads a file instead of just putting numbers in a program. Maybe it dates right back to a time when such things were still in flux. Or maybe the theory is to avoid numbers hard coded in programs (though strings hard coded aren't much better :-). _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel