INtime SDK Help
istack_synchronize

Block with timeout until the TCP/IP stack is initialized.

#include <sys/types.h>
#include <sys/socket.h>

int
istack_synchronize(unsigned int timeout);

Parameters

timeout
a value in milliseconds. 0 is non-blocking, -1 waits until stack is initialized.

Return Values

0
synchronized with stack
-1
a timeout occurred and the application is not synchronized. errno is set to ETIMEDOUT.

Remarks

Attempts to create a socket will fail with errno ENODEV if the stack is not initialized.

See Also