Sockets 使用CCL发送UDP时出现问题
当我尝试发送以下消息时:Sockets 使用CCL发送UDP时出现问题,sockets,udp,common-lisp,ccl,Sockets,Udp,Common Lisp,Ccl,当我尝试发送以下消息时: (let* ((temp-buffer message) (out-vector (make-array (length temp-buffer) :element-type'(unsigned-byte 8) :initial-contents temp-buffer)) (s (ccl:make-socket :remote-host host :remote-port port :type :datagra
(let* ((temp-buffer message)
(out-vector (make-array (length temp-buffer)
:element-type'(unsigned-byte 8)
:initial-contents temp-buffer))
(s (ccl:make-socket :remote-host host :remote-port port :type :datagram )))
(ccl:send-to s out-vector (length out-vector))
(ccl::close s))
我得到以下错误:
on #<CCL::UDP-SOCKET #x302000D9FCFD> :
Socket is already connected (error #56) during sendto
关于#的
发送到期间,套接字已连接(错误#56)
最初,该代码是有效的。
有人能解释一下这个错误信息以及如何解决它吗。
谢谢你的帮助。这似乎有效
(let* ((temp-buffer message)
(out-vector (make-array (length temp-buffer)
:element-type'(unsigned-byte 8)
:initial-contents temp-buffer))
(s (ccl:make-socket :type :datagram)))
(ccl:send-to s out-vector (length out-vector) :remote-host host :remote-port port)
(ccl::close s))
您可以尝试在CCL开发者列表中发布问题:。