W_FLUSH(3)			WLIB-CALLS			W_FLUSH(3)

NAME

	w_flush()

SYPNOSIS

	#include <Wlib.h>

	void w_flush();

DESCRIPTION

	 w_flush() is used to flush the librarys buffer of outgoing calls that
	it uses since W1R2. all calls will only be put into a buffer and only
	send to the server if that buffer is full or you flush it.

	 the effect is that you avoid quite some overhead if you use a sequence
	of small and quick calls: not each single call will suffer from socket
	overhead, but only the whole group, speeding up a continuous sequence
	of w_plot() by more than 4 times. naturally calls which are already big
	and slow don't benefit very much from this: they're so slow that the
	socket will serve as a buffer.

	 the buffer will automatically be flushed if a call expects a return
	code or you ask the server for an event, otherwise it's your task to
	call w_flush() whenever you want immediate output. if your program
	calls w_queryevent() - which it really should do from time to time to
	react to GADGET_EXIT events - and you're not really interested in real
	time output you probably won't need to change a lot. in fact the basic
	programs supplied didn't require any change.

LAST CHANGED

	01/95 by TeSche, itschere@techfak.uni-bielefeld.de
