22 questions
1 vote
1 answer
122 views
How to make Firefox render HTML generated on a local server written in Common Lisp?
My goal is something akin to Chapter 12 of Land Of Lisp: using the usocket package in SBCL I want to write a local server that I can connect to with my browser. I started from a helpful example: #!/...
2 votes
0 answers
105 views
Trouble with usocket in Clozure CL
I can't get USOCKET to work under CCL, even though the very same code works on SBCL and CCL's built-in sockets work ok. This snippet works in SBCL: (let* ((sd (usocket:socket-connect "localhost&...
1 vote
0 answers
265 views
I cannot get a Python Websocket listener to listen and print a Micropython Client send call. I can make it work Python client to Python Server
I'm trying to have a Raspberry Pi Pico W read temp and other measurements and send via web socket to a server, which is a Raspberry Pi 4). The server, at this point, just prints the data out on the ...
0 votes
1 answer
100 views
How can I modify(add/delete resource paths) a running uWebSockets server?
I have implemented a simple uWebsockets server that is listening on a certain port. Lets say I have added some resource paths to the Webserver(ex: /test1, /test2) so the server is listening and a ...
1 vote
0 answers
259 views
How can I resolve "sbcl.fasl" not found when trying to install usocket library for common-lisp [sbcl / WSL1 - Ubuntu 18.04.5]
I'm trying to use dexador library for lisp and cannot install it. I'm using quicklisp as package manager. I've been trying to use the command (ql:quicklisp :dexador) to load the desired library. this ...
1 vote
1 answer
2k views
Issues with non-blocking server sockets using polling in MicroPython
I am trying to put together a simple thermometer that provides the temperature on the OLED display as well as via http requests on an ESP8266 using MicroPython. A Poller Object has been used to ...
2 votes
1 answer
397 views
What is the purpose of the socket-close in this Common Lisp example?
I've found this example from the Common Lisp Cookbook which shows how to start a TCP server with usocket. The example creates a socket object and establishes a connection, and then writes to the ...
0 votes
0 answers
566 views
micropython usocket.IPPROTO_SEC not available
I tried using usocket.IPPROTO_SEC for micropython however it does not seem available. Is there anything else I should do to get access to usocket.IPPROTO_SEC? Setup I use this docker image. ...
1 vote
0 answers
112 views
Error: The condition Bad address (error #14) , fail to run Huntentoot on Clozure CL
I am trying to run hunchentoot on IBM power6 and only clozure cl is available on that platform. I have tried this : 1.lisp (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 80)) (...
3 votes
1 answer
486 views
Drakma and Dexador both fails at USocket call while requesting localhost only, requesting the internet works fine
There is an unexplained behavior for me for the moment, appreciate any clues. Background I have a locally running instance of wordpress via PHP built-in development webserver php -S localhost:8000 -...
1 vote
1 answer
826 views
USocket on SBCL: connection refused (Drakma and Dex)
Running simple HTTP-request: with dexador or drakma and on SBCL 1.4.14 and on OS X 10.13.6 with (ql:client-version) equals to "2017-03-06" and (defvar qlqs-info:*version* "2015-01-28" (I've just ...
0 votes
1 answer
319 views
Bidirectional socket in List
I'm trying to communicate from a Lisp script to another program by using TCP/IP sockets (with sbcl and the usocket library in a Linux system). So far I got this code: (require 'asdf) (require '...
1 vote
0 answers
330 views
Hunchentoot test webserver usocket connection refused error
Trying to start the Hunchentoot test webserver but usocket is throwing a connection error in Mac OSX El-Capitan, SBCL 1.1.6.0-3c5581a debugger invoked on a USOCKET:CONNECTION-REFUSED-ERROR: ...
3 votes
3 answers
757 views
Single-threaded sequence-reading multi-user usocket server
I'm trying to write a simple server program using the usocket library that will perform a relatively trivial task - say, echoing data back. I want to make it able to do this with multiple clients, not ...
0 votes
1 answer
186 views
Usocket unsigned byte 8 doesn't receive data while character element type does
I've run into some truly puzzling behavior with the USocket library. Consider the following snippet: (defvar server-socket (usocket:socket-listen "localhost" 43593 ...