DTMendRead(3DTM)

NAME
DTMendRead, DTMendWrite - Signal completion of reading/writing from/via the port.

SYNOPSIS
#include <dtm.h>

int DTMendRead(int portid)

int DTMendWrite(int portid)

DESCRIPTION
DTMendRead marks the end of the current message and prepares for the next message on the input port portid. DTMendRead discards any data remaining in the current message in the process. For every call to DTMendRead, there must be a matching call to DTMbeginRead, and vice versa.

DTMendWrite marks the end of the current message, signaling that no more data is to be transmitted at this time across the output port portid. For every call to DTMendWrite there must be a matching call to DTMbeginWrite and vice versa.

SEE ALSO
DTM, DTMbeginRead, DTMbeginWrite

DIAGNOSTICS
These functions return the value DTMERROR when an error condition is encountered. The value of DTMerrno can be set to any one of the following values:

	DTMCALL:	DTMbeginRead (DTMbeginWrite) must preceed call.