SysSockRecv

This TCP/IP specific function of type DINT calls the function read (VxWorks) resp. recv (Win32) of the operating system in order to receive data which have been sent to the socket.

The function will return the number of read bits.

Variable Data type Description
diSocket DINT

Descriptor of the socket, returned by SysSockCreate

(corresponding parameter e.g. in Win32: s)

pbyBuffer DWORD

Address of the buffer from which the data should be read

(corresponding parameter e.g. in Win32: buf)

diBufferSize DINT

Size of the buffer from which the data should be read

(corresponding parameter e.g. in Win32: len)

diFlags DINT

Defines in which way the function should be called; depending on the socket options.

(corresponding parameter e.g. in Win32: flags)

If the socket has been “gracefully closed” , 0 will be returned, otherwise 1.