beautypg.com

ProSoft Technology MVI69-ADMNET User Manual

Page 94

background image

WATTCP API Functions

MVI-ADMNET ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module with Ethernet

Page 94 of 122

ProSoft Technology, Inc.

February 20, 2013

sockstate

Syntax

char *sockstate ( sock_type *skType );

Parameters

skType

Current socket Type that will be used to check the connection.

Description
This function returns ASCII message indicating current state.

Return Value
String message.

Example

sock_type *socket;
char *p;

. . .

if(p = sockstate(socket) != NULL)
{
printf("State: %s\n", p);
}