How to terminate operation in LW IDE REPL on Windows
Hi,
I'm trying to test some networking software by listening for messages on socket.(defun create-server-once (port)
(let* ((socket (usocket:socket-connect nil nil
:protocol :datagram
:element-type '(unsigned-byte 8)
:local-host "127.0.0.1"
:local-port port))
(buffer (make-array 8 :element-type '(unsigned-byte 8))))
(unwind-protect
(multiple-value-bind (buffer size client receive-port)
(usocket:socket-receive socket buffer 8)
(format t "~A~%" buffer))
(usocket:socket-close socket))))
Debugging shows what this function is waiting in mp::process-wait-for-queue.
The way to stop it is either to close the IDE or kill the listener.