SysSockListen (FUN)ΒΆ

FUNCTION SysSockListen : RTS_IEC_RESULT

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

Scope

Name

Type

Comment

Return

SysSockListen

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