Module: replymgr Purpose: Private to ("stand-alone") hermes. Collection of routines to manage hermes' reply to a requesting servant. File: replymgr.c Author: J.P. Terlouw Description: The following routines are available: a) services to Hermes: void reply_clear(void) initializes the internal buffer. void reply_put(char *data, int number) appends 'number' bytes taken from 'data' to the internal buffer. void reply_send(TaskStatus status, int result) writes the 'result' code to the buffer (0 = no error). 'Status' specifies the task status block of the requesting servant (currently not used). bool reply_ready(void) returns true if buffer is ready to be sent to servant, i.e. if reply_send has been called. b) service to the requesting servant (after binding by bind_hermes called from srvreq): int SA_recv_msg(char *bufout, int number) obtain up to 'number' bytes from the buffer and store them in 'bufout'. Return the actual number of bytes received. The first bytes form the result code. Updates: 23-Feb-90 -- original document 11-Oct-90 -- name of recv_msg changed to SA_recv_msg