MVI-ADMNET
♦
'C' Programmable
WATTCP API Functions
Ethernet Module
Page 64 of 90
ProSoft Technology, Inc.
December 13, 2006
sockerr
Syntax:
char *sockerr ( sock_type *skType );
Parameters:
skType
Current socket Type that will be used to check the connection.
Description:
This function returns ASCII error message if there is any. Otherwise, NULL is
returned.
Return Value:
String message or NULL if there is no error.
Example:
sock_type *socket;
char *p;
. . .
if(p = sockerr(socket) != NULL)
{
printf("Error: %s\n", p);
}