Questions tagged [usocket]

The USOCKET project wants to provide a portable TCP/IP and UDP/IP socket interface for as many Common Lisp implementations as possible, while keeping the abstraction and portability layer as thin as possible.

21 questions
0
votes
1 answer

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 client can send request to those resource paths. Now…
0
votes
0 answers

ESP32: Trying to update UART data on the ESP server webpage using SOCKETS, page stops loading as soon as UART data is sent (UART over webpage)

am using Micropython to make a ESP webserver that can update my UART data live on the page. the page works good as long as there is no UART data. but when UART data is sent, the page stops loading. below is my code. any help would be…
Venky
  • 1
0
votes
0 answers

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. Micropython version: 1.11 Description The micropython docs…
Pedro Borges
  • 1,240
  • 10
  • 20
0
votes
1 answer

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 'usocket) (defun start-client () ( …
Janus Gowda
  • 295
  • 1
  • 4
  • 17
0
votes
1 answer

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 :element-type …
Reepca
  • 323
  • 2
  • 7
0
votes
1 answer

400 Bad Request when sending a http request with Common Lisp usocket

I'm using the following code to grab the url http://brandonhsiao.com/essays.html: (defparameter *new-line* '(#\Return #\Newline)) (defun read-url (host port path) (let ((sock (usocket:socket-connect host port))) (format (usocket:socket-stream…
user2058002
1
2