MVI-ADMNET
♦
'C' Programmable
WATTCP API Functions
Ethernet Module
Page 52 of 90
ProSoft Technology, Inc.
December 13, 2006
ADMNET API System Functionality
The following topics describe the ADMNET API System Functionality calls.
tcp_tick
Syntax:
int tcp_tick( sock_type *skType );
Parameters:
skType
Current socket Type or NULL for all sockets.
Description:
This function is used by an application to determine the connection status of the
sockets.
Return Value:
0
disconnected or reset.
>0 connected.
Example:
sock_type *socket;
. . .
if(tcp_tick(socket)) //check socket
{
printf("Connected\n");
}