[Ecls-list] SBCL Sockets in ecl will not take string as buffer?

Peter Enerccio enerccio at gmail.com
Mon Jan 7 15:45:07 UTC 2013


Hello, I am trying to use SB-BSD-SOCKETS in ecl, however, since there is no
documentation about that, I am using documentation on SBCL webpage (which
is supposed to be the same for sockets), however, SOCKET-SEND according to
help on sbcl webpage can accept string as buffer, however, this method is
failing for me in ecl:

(defmethod dispatch-header ((s server) sock stringstream)
  (terpri stringstream)
  (socket-send sock (get-output-stream-string stringstream) nil))

with

Lisp object is not a valid socket buffer: HTTP/1.0 200 OK nServer:
HTCL/0.01 nContent-Type: text/html
Content-Lenght: 134
Last-Modified: Mon, 7 Feb 2013 13:31:27 GTM


   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [ABORT] ABORT

Backtrace:
  0: DEBUG-IN-EMACS
  1: G835
  2: CALL-WITH-DEBUGGER-HOOK
  3: G843
  4: CALL-WITH-BINDINGS
  5: INVOKE-SLIME-DEBUGGER
  6: G848
  7: CALL-WITH-DEBUGGER-HOOK
  8: SWANK-DEBUGGER-HOOK
  9: G125
 10: #<bytecompiled-function 000000000350eb40>
      Locals:
        S = #<server descriptor 5 00000000025776f0>
        SOCK#1 = #<server descriptor 8 0000000002577690>
        STRINGSTREAM#2 = #<string-output stream 00000000035a6f00>
 11: #<bytecompiled-function 000000000380ab40>
 12: #<bytecompiled-function 000000000350e8c0>
 13: #<bytecompiled-function DISPATCH-CLIENT>
 14: NIL


-- 
Bc. Peter Vaňušanik
http://www.bishojo.tk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130107/712591f5/attachment.html>


More information about the ecl-devel mailing list