SysSockSend (FUN)ΒΆ

FUNCTION SysSockSend : __XINT

Sent data to a TCP socket.
InOut:

Scope

Name

Type

Comment

Return

SysSockSend

__XINT

Number of sent bytes. 0 if failed.

Input

hSocket

RTS_IEC_HANDLE

Handle to the socket

pbyBuffer

POINTER TO BYTE

Buffer with data to sent

diBufferSize

__XINT

Maximum length of the buffer

diFlags

DINT

The flags parameter can be used to influence the behavior of the function beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by using the bitwise OR operator with any of the SOCKET_MSG values.

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors.library)