SysSock2Listen (FUN)ΒΆ

FUNCTION SysSock2Listen : RTS_IEC_RESULT

Listen on a TCP server socket for new connection.
InOut:

Scope

Name

Type

Comment

Return

SysSock2Listen

RTS_IEC_RESULT

Runtime system error code (see CmpErrors.library).

Input

hSocket

RTS_IEC_HANDLE

Handle to the socket

diMaxConnections

DINT

Maximum number of connections allowed