Prosoft-technology MVI69-ADMNET Bedienungsanleitung Seite 106

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 122
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 105
WATTCP API Functions MVI-ADMNET 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module with Ethernet
Page 106 of 122 ProSoft Technology, Inc.
February 20, 2013
sock_fastread
Syntax
int sock_fastread( sock_type *skType, byte *data, int len);
Parameters
skType
Current socket that will be used to receive data.
data
Pointer to a buffer that contains data that is received to a server.
len
Length of data specified to receive.
Description
This function reads data to the socket being passed to the function. The function
will not check to the data read into the socket.
Return Value
Number of bytes that are read to the socket or -1 if an error occurs.
Example
sock_type *socket;
char theBuffer [512];
int len, bytes_receive;
. . .
bytes_receive = sock_fastread(socket, (byte*)theBuffer, len);
See Also
sock_read (page 105)
Seitenansicht 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 121 122

Kommentare zu diesen Handbüchern

Keine Kommentare