Syntax |
DWORD GetNextSocketChange (void *arg, TCHAR *node, DWORD *ipAddress, DWORD *state); |
|
Description |
This function gets the information about the next IP status change. |
|
Comments |
The arg pointer is the pointer returned by the InitSocketChange function. The node buffer is used to hold the name of the node for this IP address. It should be 255 characters or larger. The ipAddress is the IP address that has had a status change. The state is the new state of the IP address. The states are: |
|
|
0 |
Not connecting |
|
1 |
Connecting |
|
2 |
Connected |
|
3 |
Deleted |
|
4 |
Unknown |
|
This function returns 1 if it is successful, or 0 if there are no more changes. |
Example
Dim data As Long
Dim node As String
Dim ipAddress As Long
Dim state As Long
Node = Space(256)
While GetNextSocketChange (data,node,ipAddress,state)
Wend
IP Status API functions. |