<div dir="ltr"><div>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:<br>
<br>(defmethod dispatch-header ((s server) sock stringstream)<br> (terpri stringstream)<br> (socket-send sock (get-output-stream-string stringstream) nil))<br><br></div><div>with<br><br clear="all"></div><div>Lisp object is not a valid socket buffer: HTTP/1.0 200 OK nServer: HTCL/0.01 nContent-Type: text/html<br>
Content-Lenght: 134<br>Last-Modified: Mon, 7 Feb 2013 13:31:27 GTM<br><br><br> [Condition of type SIMPLE-ERROR]<br><br>Restarts:<br> 0: [ABORT] ABORT<br><br>Backtrace:<br> 0: DEBUG-IN-EMACS<br> 1: G835<br> 2: CALL-WITH-DEBUGGER-HOOK<br>
3: G843<br> 4: CALL-WITH-BINDINGS<br> 5: INVOKE-SLIME-DEBUGGER<br> 6: G848<br> 7: CALL-WITH-DEBUGGER-HOOK<br> 8: SWANK-DEBUGGER-HOOK<br> 9: G125<br> 10: #<bytecompiled-function 000000000350eb40><br> Locals:<br>
S = #<server descriptor 5 00000000025776f0><br> SOCK#1 = #<server descriptor 8 0000000002577690><br> STRINGSTREAM#2 = #<string-output stream 00000000035a6f00><br> 11: #<bytecompiled-function 000000000380ab40><br>
12: #<bytecompiled-function 000000000350e8c0><br> 13: #<bytecompiled-function DISPATCH-CLIENT><br> 14: NIL<br><br><br>-- <br>Bc. Peter Vaņu¹anik<br><a href="http://www.bishojo.tk" target="_blank">http://www.bishojo.tk</a><br>
</div>
</div>