User`s guide
ldv-read
Purpose
Retrieves an available message from the network interface hardware. The function
returns immediately when no messages are available. An error is returned when the
next available message is longer than the specified buffer length.
Syntax
#include <ldv.h>
short ldv-read(short handle, void far *msg-p, short len);
See Also
ldv-write0
Returns
LDV-OK (0)
Message read and placed in the buffer
pointed to by
msg-p.
LDV-NOT-OPEN (3)
Invalid handle or device not open.
LDV-DEVICE-ERR (4)
Error occurred accessing device.
LDV-NO-MSG-AVAIL (6)
No message available.
LDV-INVALID-BUF-LEN (9)
Invalid buffer length.
Parameters
handle
n-w-p
len
short
Device identifier returned by
ldv-open ( ) .
void far *
Pointer to the buffer into which the message will be
placed.
short
Length of buffer, in bytes.
SLTA-10 Adapter User’s Guide
A-7