guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module: (web client)


From: Andy Wingo
Subject: Re: new module: (web client)
Date: Tue, 06 Dec 2011 11:51:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Mon 18 Jul 2011 14:59, address@hidden (Ludovic Courtès) writes:

> Andy Wingo <address@hidden> skribis:
>
>> (define (open-socket-for-uri uri)
>>   (let* ((ai (car (getaddrinfo (uri-host uri)
>
> What if URI is file://foo?

It will look up the addrinfo for the "file" service of "foo".

    scheme@(guile-user)> (getaddrinfo "foo" "file")
    ERROR: In procedure getaddrinfo:
    ERROR: Throw to key `getaddrinfo-error' with args `(-8)'.

If you use file:///foo:

    scheme@(guile-user)> (getaddrinfo #f "file")
    ERROR: In procedure getaddrinfo:
    ERROR: Throw to key `getaddrinfo-error' with args `(-8)'.

I guess we need to add exception printers for these errors.  Want to do
that?  :-)

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]