#102 contrib/socket.lisp not sb-bsd-sockets-compatible

closed
nobody
None
5
2012-07-25
2009-08-16
Anonymous
No

contrib/sockets.lisp's SOCKET-MAKE-STREAM expects :BUFFERING-MODE key with a
default of NIL, where:

NIL means no buffering (the default)
:LINE-BUFFERED is line-buffered
:FULLY-BUFFERED is fully buffered.

However, SBCL's SOCKET-MAKE-STREAM expects a :BUFFERING with a default of :FULL,
where:

:NONE is unbuffered
:LINE is line buffered
:FULL is fully buffered.

The attached diff is believed to make SOCKET-MAKE-STREAM SBCL-compatible on ECL
CVS HEAD.

Two other incompatibilities subsist, however, which this does not address:
- On SBCL, (require :SB-BSD-SOCKETS) is used when on ECL (require :SOCKETS)
- On SBCL there also now is ADDRINFO which is also declared as FEATURE and
is a better interface than the deprecated gethostbyname/gethostbyaddr.

Unfortunately, trackig open PRs seem to require a sourceforge account.
I'll try to bookmark a link to this PR and manually track it for now.

Thanks,
Matthew Mondor

Discussion


Anonymous


Cancel   Add attachments