From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mark.d.witmer@gmail.com Newsgroups: gmane.lisp.guile.user Subject: Re: Trouble w/sockets Date: Sun, 03 Mar 2013 23:38:43 -0500 Message-ID: <87vc97kcdo.fsf@gmail.com> References: <871ubxxie3.fsf@markwitmer.com> <1362286125.99740.YahooMailNeo@web120403.mail.ne1.yahoo.com> <87wqtp11va.fsf@markwitmer.com> <874ngtq6uw.fsf@zigzag.favinet> <87zjyjkdbb.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362371929 23417 80.91.229.3 (4 Mar 2013 04:38:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 04:38:49 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 04 05:39:13 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 1UCNBA-0003VA-MZ for guile-user@m.gmane.org; Mon, 04 Mar 2013 05:39:12 +0100 Original-Received: from localhost ([::1]:49618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCNAo-0004T7-PH for guile-user@m.gmane.org; Sun, 03 Mar 2013 23:38:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCNAd-0004Sr-EH for guile-user@gnu.org; Sun, 03 Mar 2013 23:38:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCNAb-0008NU-5Z for guile-user@gnu.org; Sun, 03 Mar 2013 23:38:39 -0500 Original-Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:32786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCNAb-0008NO-14 for guile-user@gnu.org; Sun, 03 Mar 2013 23:38:37 -0500 Original-Received: by mail-ie0-f179.google.com with SMTP id k11so5616370iea.24 for ; Sun, 03 Mar 2013 20:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Q44rp0BJFo153QEO/sb0W9aKBkyAZYG6KrlKbbBzVgo=; b=v4ZjnE7h/kmBk7goYPdb+Z33ts5XBIYz0+oB2NcbN8n/6xqhIgl0QmBRYFRhjPGrpg JkMzuP9AG2E51yMVDaV7JU4LiWGGZtrZa1uMDAk6X1dyZUMlVrRtxkrfvD65cxJ8Yqy+ mqUBWgOjYfRcTniBVuJD9l+PhKQx9h722RaPD3aKRAho8D8ROKGOuNDbdCSaOLcGHh8l RyMxcPaaq2gaZy6T78HMTV61/a6vpmn/kdGqKOUv5uX4F2kafY3ztyHtSzz8KQ0UrveO w5DFpwKoFTnkXXyWzdnEY3xUAbkW5D4oZzfqVoEE7Tf9VVqF3sDwpJPirECzRnBg2/Ue RYFw== X-Received: by 10.42.58.67 with SMTP id g3mr23049400ich.56.1362371916380; Sun, 03 Mar 2013 20:38:36 -0800 (PST) Original-Received: from localhost (cpe-184-58-115-186.woh.res.rr.com. [184.58.115.186]) by mx.google.com with ESMTPS id px9sm8681054igc.0.2013.03.03.20.38.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 20:38:35 -0800 (PST) In-Reply-To: <87zjyjkdbb.fsf@gmail.com> (mark d. witmer's message of "Sun, 03 Mar 2013 23:18:32 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::233 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:10166 Archived-At: mark.d.witmer@gmail.com writes: > But calls to readv() after I do the select + usleep loop you suggest > here just give me garbage data. (read-char) gets #. > Oh, and the return value (bytes read) from readv() is zero, so the garbage data is just stuff in an unitialized bytevector. Looks like the socket is still getting closed early. > > Thanks to everyone for their help. I feel like I'm close to figuing this > out, but I probably need to take a break from this for a > while. Hopefully I'll get this working at some point in the relatively > near future! Ok, now I'm taking a (multi-day, hopefully) break... thanks all. -- Mark Witmer