beautypg.com

ProSoft Technology MVI69-ADMNET User Manual

Page 88

background image

WATTCP API Functions

MVI-ADMNET ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module with Ethernet

Page 88 of 122

ProSoft Technology, Inc.

February 20, 2013

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");
}