SysSockCreateΒΆ
This function of type DINT calls the function socket of the operating system. A new socket will be created and assigned to a Service Provider.
The function returns the descriptor of the new socket, which is used as input parameter in other functions of the library, e.g. SysSockBind, SysSockConnect.
| Variable | Data type | Description |
|---|---|---|
| diAddressFamily | DINT | Address family (corresponding parameter e.g. in Win32: af) |
| diType | DINT | One of the following two types can be used e.g. for Windows Sockets 1.1: SOCK_STREAM, SOCK_DGRAM (corresponding parameter e.g. in Win32: type) |
| diProtocol | DINT | Protocol, depending on the chosen address family (corresponding parameter e.g. in Win32: protocol) |