From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Sassmannshausen Newsgroups: gmane.lisp.guile.user Subject: Re: Unix Domain Sockets and (write) (read) Date: Tue, 16 Jul 2013 19:17:26 +0200 Message-ID: <877ggqbf15.fsf@honeybear.home> References: <87y59o61c4.fsf@honeybear.home> <87txkaugjs.fsf@honeybear.home> <87hag9ry68.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373991474 4130 80.91.229.3 (16 Jul 2013 16:17:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 16:17:54 +0000 (UTC) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 16 18:17:55 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uz7wo-0001Dp-Jh for guile-user@m.gmane.org; Tue, 16 Jul 2013 18:17:54 +0200 Original-Received: from localhost ([::1]:59856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz7wo-0005pU-5o for guile-user@m.gmane.org; Tue, 16 Jul 2013 12:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz7wb-0005pB-AW for guile-user@gnu.org; Tue, 16 Jul 2013 12:17:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz7wU-0006Sj-S3 for guile-user@gnu.org; Tue, 16 Jul 2013 12:17:41 -0400 Original-Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:34164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz7wU-0006SE-Iy; Tue, 16 Jul 2013 12:17:34 -0400 Original-Received: by mail-we0-f178.google.com with SMTP id u53so824859wes.9 for ; Tue, 16 Jul 2013 09:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=eL06NhvFnTtHWmNu94ATYvaPISQxavYLBkWmDh3Bjs4=; b=FJFG5OD1wRab5Qqm+JSdb0UwwZuulAN8S/wOQM5rqH0GEu9cTU0CQjo78i5BQa8nEf 4SEbn68nGB/kKPOj7AZJACJnrOS8Ui7QvGLpJb6bjbIsx9b4kRbGIlPwjbJRoikw5Jn4 HzJTVaDWkxkRGhhBzoGtpsiKN0CUIq84w1apLCp0nyU6stiEBnUgmwR2dBxirTb8NcNl FtEKrsfcSSEFWWmx5fSWwJIXljqzpjkZbRWATVD2FMDbVU9wyy/sgKZ9upjmj+XuBA3U AT8Bov6VDi2gZ7pEFoL48kGKSlTg7azh35jTdnahZtnIXGR9TMGLC46+R4pmvosLlu4K pW0Q== X-Received: by 10.180.206.70 with SMTP id lm6mr12918883wic.50.1373991453722; Tue, 16 Jul 2013 09:17:33 -0700 (PDT) Original-Received: from honeybear.home (159.2.87.79.rev.sfr.net. [79.87.2.159]) by mx.google.com with ESMTPSA id a6sm3497503wib.10.2013.07.16.09.17.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 16 Jul 2013 09:17:32 -0700 (PDT) In-Reply-To: <87hag9ry68.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 05 Jul 2013 14:25:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::232 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10548 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: Hello, > Hi, > > Alex Sassmannshausen skribis: > >> I'm thinking of writing a summary of my attempts as a novice in socket >> communications with an example of Unix domain sockets in action. Do >> people think that something like that might also be a useful addition to >> the network chapter in Guile's manual? Or is the Examples section kept >> quite brief on purpose? > > It=E2=80=99s always useful to have more introductory material. > > My (biased) viewpoint is that the =E2=80=9CNetwork Socket Examples=E2=80= =9D section has > the important thing because after all, changing these examples to use > Unix-domain sockets instead of TCP should be a simple exercise for the > reader. ;-) I agree on this bit =E2=80=94 I found it a useful exercise myself. > What would you add to that section? Maybe it's not quite this section, but in the section relating to read/write scheme objects (6.17 Reading and Evaluating Scheme Code), if the solution to my original problem is indeed resolved by Aleix's suggestions to use (force-output) on the socket to enable two way communication. Maybe a sub-section in that chapter containing examples of read/write, in a similar fashion to the examples in the sockets chapter? > The glibc manual has additional examples to datagram sockets, among > other things. Perhaps that should be an inspiration? I will have a look at that manual and see what I can come up with =E2=80=94= in time :-) Best wishes, Alex > > Thanks, > Ludo=E2=80=99.