Prosoft-technology MVI69-ADMNET Uživatelský manuál Strana 108

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 122
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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)
Zobrazit stránku 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 121 122

Komentáře k této Příručce

Žádné komentáře