WaitSocketChange

Syntax

DWORD WaitSocketChange (void *arg, DWORD timeout);

Description

This function waits for the next change in an IP status to occur.

Comments

The arg pointer is the pointer returned by the InitSocketChange function.

The timeout parameter is the length of time in milliseconds to wait for a change to occur. If the value is –1 then the function will wait forever.

This function returns a 1 if a status has changed or 0 if the function timed out.

Example

Dim data As Long

i = WaitSocketChange(data, 5000)

More information

IP Status API functions.