Hi,<div><br></div><div>I've a socket stream named "socket" in this port and host: 50362 and localhost</div><div><br></div><div>I've written this function to redirect format function to the socket but only appears NIL. How can I redirect format t lisp function to a socket?</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>(defun colors()</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>(WITH-OPEN-STREAM (socket (SOCKET:SOCKET-CONNECT 50362 "localhost"))</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>(let ((*standard-output* socket))</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>(format t "The color is ~A" "red")</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>)))</div></div><div><br></div><div>Thanks</div>