Flushing modem's buffer

Flushing modem's buffer

Post by sdave.. » Sun, 23 Apr 1995 04:00:00



How can I flush the contents of a modem's buffer while still maintaining a
valid connection?  The function should clear all pending data from the modem,
so that the next item read in is new data.

Scott


 
 
 

Flushing modem's buffer

Post by Trever Mill » Mon, 24 Apr 1995 04:00:00


: How can I flush the contents of a modem's buffer while still maintaining a
: valid connection?  The function should clear all pending data from the modem,
: so that the next item read in is new data.

Look up BREAK signal handling in your modem manual.  Some modems can
be configured to do different things upon receiving a BREAK signal, one
of them being to flush the buffer.
--


"Nice shark...pretty shark..." -- Londo, "The Gathering"

 
 
 

1. doing buffered RPC via clnt_call: how to do a buffer flush?

Hi,

   at the university I am trying to write a fast client/server application
using RPC (tcp mode).
For this I am trying to force RPC to buffer RPC calls which do not need a return
value locally at the client. This should greatly increase the speed of
my application as I do not have to wait for the servers response at every call.

I have figured out to use the buffered clnt_call
   (see RPCs clnt_tcp.c:
      * TCP based RPC supports 'batched calls'.
      * A sequence of calls may be batched-up in a send buffer.  The rpc call
      * return immediately to the client even though the call was not necessaril
      * sent.  The batching occurs if the results' xdr routine is NULL (0) AND
      * the rpc timeout value is zero (see clnt.h, rpc).
    )
This buffers the RPC locally at the client, but seem not send the RPC call
to the server regulary.

My question:

  How do I force RPC to send the buffer contents from the client to the server?
  (how do I flush the buffer).

Any hint is appreciated.


Many thanks.

-- Birgit

2. CR II stays within my isp

3. where can i get a firewall

4. disable console message

5. exit doesn't(?) flush all buffers!

6. System Admin Metrics (human)

7. How do I cause a process to flush it's buffers?

8. How to 'flush' output of 'C' cgi-program

9. HP JetDirect: Flushing buffer on printer

10. How do I flush buffers from a script?

11. Well, flush my buffers!