Prosoft-technology MVI69-ADMNET Bedienungsanleitung Seite 108

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 122
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 107
WATTCP API Functions MVI-ADMNET 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module with Ethernet
Page 108 of 122 ProSoft Technology, Inc.
February 20, 2013
sock_gets
Syntax
int sock_gets( sock_type *skType, byte *data, int len);
Parameters
skType
Socket that will be used to get string data from.
data
Pointer to the string return.
len
Specified length for the function to get the string.
Description
This function is used for obtaining a string from the socket. The len parameter
specifies how long the string will be read.
Return Value
The length read from the socket is returned.
Example
sock_type *socket;
char data [512];
int len;
. . .
len = sock_gets(socket, data, 100);
printf("Get %d\n", len);
See Also
sock_getc (page 109)
Seitenansicht 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 121 122

Kommentare zu diesen Handbüchern

Keine Kommentare