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

  • 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 102
MVI-ADMNET 'C' Programmable WATTCP API Functions
'C' Programmable Application Development Module with Ethernet Developer's Guide
ProSoft Technology, Inc. Page 103 of 122
February 20, 2013
sock_puts
Syntax
int sock_puts( sock_type *skType, byte *data);
Parameters
e
Socket that will be used to put string data to.
data
Pointer to the string that will be sent.
Description
This function sends a string to the socket. Character new line "\n", will be
attached to the end of the string.
Return Value
The length that is written to the socket.
Example
sock_type *socket;
char data [512];
int len;
. . .
len = sock_puts(socket, data);
printf("Put %d\n", len);
See Also
sock_putc (page 104)
Zobrazit stránku 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 121 122

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

Žádné komentáře