MVI-ADMNET
♦
'C' Programmable
Application Development Function Library: ADMNET API
Ethernet Module
Page 48 of 90
ProSoft Technology, Inc.
December 13, 2006
ADM_is_sk_open
Syntax:
int ADM_is_sk_open(char *skName);
Parameters:
skName
Name of the socket that has been initialized and used to receive
data.
Description:
ADM_is_sk_open tests if connection is still valid or not.
Return Value:
SK_SUCCESS Socket
is
successfully sent.
SK_NOT_FOUND
Socket could not be found.
SK_SOCKET_CLOSE
Socket is closed.
Example:
char sockName1[ ] = "SendSocket";
if(ADM_is_sk_open(sockName1) != SK_SUCCESS) {
printf("Socket not Opened\n");
} else {
printf("Socket Opened\n");
}