|
|
After the REXEC server has given an indication of the remote process termination, the client is expected to acknowledge and, optionally, to request the return of any type-ahead characters sent to the server process but not consumed. This is done using the rx_ack_exit routine.
int cnum; /* connection number */#define TABUFLEN 100
main() { char ta_buf[TABUFLEN]; /* type-ahead buffer */ int ta_len; /* number of type-ahead chars returned */ . . . ta_len = rx_ack_exit(cnum, ta_buf, TABUFLEN); }