From: Stephen P Spackman

Subject: Re: flushing socket streams

Date: 1994-8-23 10:56

<Franz.COM at smh> (Steve Haflich) wrote:

|The default implementation of FINISH-OUTPUT was intended just to
|delegate to FORCE-OUTPUT, but I believe there was a bug (since fixed)
|causing it to do nothing for certain stream classes.  Try using
|FORCE-OUTPUT instead.

I tried this and it behaves the same as always - nothing gets
(physically) written until I close the stream.

|But rather than writing your own socket server you should consider
|using the one included in the Allegro distribution in the library
|source file ipc.cl.  It provides both client and server facilities.
|You might well need to adapt the sources to your needs, but the
|mechanism (which underlies the emacs-lisp interface) is well debugged
|and doesn't depend on any messy foreign functions.

This is what I started from, and I'm not sure what you mean when you say
it "doesn't depend on any messy foreign functions" - it's because it's
such a tangle of messy foreign functions that I thought it was probably
worth doing over, rather than modifying (it even uses bzero() - is this
supported by all platforms? The C standard has replaced the b- functions
with the mem- functions).

stephen
----------------------------------------------------------------------
stephen p spackman    +49 681 302 5288(o) 5282(sec)    <acm.org at stephen>
  dfki +1.24 / stuhlsatzenhausweg 3 / D-66123 saarbruecken / germany
----------------------------------------------------------------------