SockInit

The SockInit() call initializes the socket data structures and checks whether the TCP/IP network is active.

Syntax:

>>--SockInit()-----------------------------------------------------------><

SockInit() can be called at the beginning of each program that uses SockSocket(). However, it is not obligatory because each RxSock function is automatically initialized. For this reason, explicit initialization is not available in all system environments.

Return values:

The value 0 indicates successful execution of the call. The value 1 indicates an error.

Note: SockInit() interfaces with the C function sock_init().