Prosoft-technology MVI69-ADMNET Bedienungsanleitung Seite 81

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 122
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 80
MVI-ADMNET 'C' Programmable WATTCP API Functions
'C' Programmable Application Development Module with Ethernet Developer's Guide
ProSoft Technology, Inc. Page 81 of 122
February 20, 2013
6.3 ADMNET API System Functionality
The following topics describe the ADMNET API System Functionality calls.
tcp_tick
Syntax
int tcp_tick( sock_type *skType );
Parameters
skType
Current socket Type or NULL for all sockets.
Description
This function is used by an application to determine the connection status of the
sockets.
Return Value
0
disconnected or reset.
>0
connected.
Example
sock_type *socket;
. . .
if(tcp_tick(socket)) //check socket
{
printf("Connected\n");
}
Seitenansicht 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 121 122

Kommentare zu diesen Handbüchern

Keine Kommentare