Search found 3 matches

by Kuro
Thu May 17, 2018 3:10 am
Forum: Common Lisp
Topic: using sockets to send a file
Replies: 8
Views: 4745

Re: using sockets to send a file

Is there a difference between force-output and finish-output with this API? That's a good question that I don't know the answer to. But I kinda figured out what the original problem was and everything works now. read-byte just keeps waiting for input when the stream is empty. So when all the bytes ...
by Kuro
Tue May 15, 2018 10:56 am
Forum: Common Lisp
Topic: using sockets to send a file
Replies: 8
Views: 4745

Re: using sockets to send a file

What effect does the :ELEMENT-TYPE argument have? I'm only familiar with CCL's stream sockets, which are bivalent (taking both characters and bytes). you can specify whether you want to send character, unsigned-byte or both. :element-type :default should be creating a bivalent stream. Since you hav...
by Kuro
Sun May 13, 2018 2:06 pm
Forum: Common Lisp
Topic: using sockets to send a file
Replies: 8
Views: 4745

using sockets to send a file

Hi, I'm trying to figure out how to work with sockets in lisp. I found the following code, which works fine. https://www.nicklevine.org/lisp-book/contents/chhttp.pdf But I ran into some problems as I tried sending a file instead of just strings. I can send the file, but I haven't managed to report b...