SysSockCreate (FUN)ΒΆ

FUNCTION SysSockCreate : RTS_IEC_HANDLE

Create a new socket and return the socket handle.

InOut:

Scope

Name

Type

Comment

Return

SysSockCreate

RTS_IEC_HANDLE

Handle to the new socket. The return is a descriptor (handle) of the new socket, which is required as input parameter by other library functions like SysSockBind, SysSockConnect etc.

Input

iAddressFamily

INT

Socket address family

diType

DINT

Socket type

diProtocol

DINT

Socket protocol

pResult

POINTER TO RTS_IEC_RESULT

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