[usocket-cvs] r367 - public_html
ehuelsmann at common-lisp.net
ehuelsmann at common-lisp.net
Sun Jul 13 18:59:37 UTC 2008
Author: ehuelsmann
Date: Sun Jul 13 14:59:36 2008
New Revision: 367
Modified:
public_html/api-docs.shtml
Log:
Update FAQ.
Modified: public_html/api-docs.shtml
==============================================================================
--- public_html/api-docs.shtml (original)
+++ public_html/api-docs.shtml Sun Jul 13 14:59:36 2008
@@ -159,6 +159,16 @@
<h1><a name="faqs">How do I ...</a></h1>
<dl class="faq">
+<dt>... force the output to be written to the network?
+</dt>
+<dd>When you write output to the stream, it may be buffered before
+ sent over the network - for optimal performance of small writes. You
+ can force the buffer to be flushed the same way as with normal streams:
+
+<pre>(format (socket-stream socket) "Hello there~%") ;; output into buffers
+(force-output (socket-stream socket)) ;; <== flush the buffers, if any
+</pre>
+</dd>
<dt>... check whether the other end has closed my socket stream?
</dt>
<dd>Reading from a stream which has been closed at the remote end
More information about the usocket-cvs
mailing list