WATTCP API Functions
MVI-ADMNET
♦
'C' Programmable
Ethernet Module
ProSoft Technology, Inc.
Page 59 of 90
December 13, 2006
sock_established
Syntax:
int sock_established( sock_type *skType );
Parameters:
skType
Current socket Type that will be used to check the connection.
Description:
This function is used check if the socket has been established.
Return Value:
Not
established.
1 Establish
Example:
sock_type *socket;
. . .
if(sock_established(socket))
{
printf("Socket has been established\n");
}