SysSockCreate (FUN)
FUNCTION SysSockCreate : RTS_IEC_HANDLE
Create a new socket and return the socket handle.
- InOut:
Scope
Name
Type
Comment
Return
SysSockCreateRTS_IEC_HANDLEHandle 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
iAddressFamilyINTSocket address family
diTypeDINTSocket type
diProtocolDINTSocket protocol
pResultPOINTER TO RTS_IEC_RESULT
Pointer to runtime system error code (see CmpErrors.library)