/* 
 * -- $Header: /cec/src/nestor/servers/R3/shXlib/io.h,v 1.1.1.1 90/04/23 10:12:34 spanachi Exp $
 */
#ifndef PUBLIC
#define PUBLIC extern
#endif
 

/*****************************************************************
 * -- ReadRequest : returns one request from the buffer
 *
 * -- This "routine" is fairly simple (so we code it as a macro) :
 * -- Look at the start of the "buffer" and determine the length of the next 
 * -- request ( the request length is always stored in the 3rd byte )
 * -- Compare this length with "size" to see if the buffer contains the
 * -- whole request. 
 * -- If so , return the address of the buffer,
 * -- otherwise return NULL 
 *****************************************************************/

#define ReadRequest( buffer , size ) \
    ( ( ( size == 0 ) || ( ( ( ( xReq * )buffer )->length ) << 2 ) > size ) ? \
    NULL : buffer ) 

PUBLIC void

XmuXWriteToServer( ) ,

XmuXFlushConnections( ) ;

#undef PUBLIC
