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: doco socket Date: Tue, 26 Aug 2003 08:01:19 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87ptitcs7k.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061871823 25855 80.91.224.253 (26 Aug 2003 04:23:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 04:23:43 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 26 06:23:42 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19rVMr-0005hx-00 for ; Tue, 26 Aug 2003 06:23:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rVM9-00026O-Aw for guile-devel@m.gmane.org; Tue, 26 Aug 2003 00:22:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19rVEU-0007ee-2p for guile-devel@gnu.org; Tue, 26 Aug 2003 00:15:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19rVC0-0005cT-4N for guile-devel@gnu.org; Tue, 26 Aug 2003 00:12:59 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rV6q-0002gq-KN for guile-devel@gnu.org; Tue, 26 Aug 2003 00:07:09 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7PM1o0J021322 for ; Tue, 26 Aug 2003 08:01:50 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h7PM1nkv010497 for ; Tue, 26 Aug 2003 08:01:49 +1000 (EST) Original-Received: from localhost (ppp74.dyn228.pacific.net.au [203.143.228.74]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h7PM1Vos001207 for ; Tue, 26 Aug 2003 08:01:40 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19rPOp-0000kn-00; Tue, 26 Aug 2003 08:01:19 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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:2714 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2714 * posix.texi (Network Sockets and Communication): In socket, use @defvar for protocol variables, cross reference for getprotobyname, note it's usually connect and accept that establishes communication. - Scheme Procedure: socket family style proto - C Function: scm_socket (family, style, proto) Return a new socket port of the type specified by FAMILY, STYLE and PROTO. All three parameters are integers. The possible values for FAMILY are as follows, where supported by the system - Variable: PF_UNIX - Variable: PF_INET - Variable: PF_INET6 The possible values for STYLE are as follows, again where supported by the system, - Variable: SOCK_STREAM - Variable: SOCK_DGRAM - Variable: SOCK_RAW PROTO can be obtained from a protocol name using `getprotobyname' (*note Network Databases::). A value of zero specifies the default protocol, which is usually right. A socket cannot by used for communication until it has been connected somewhere, usually with either `connect' or `accept' below. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel