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

  • 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 99
WATTCP API Functions MVI-ADMNET 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module with Ethernet
Page 100 of 122 ProSoft Technology, Inc.
February 20, 2013
sock_fastwrite
Syntax
int sock_fastwrite( sock_type *skType, byte *data, int len);
Parameters
skType
Current socket that will be used to send data.
data
Pointer to a buffer that contains data that will be sent to a server.
len
Length of data specified to send.
Description
This function writes data to the socket being passed to the function. The function
will not check to the data written out to the socket.
Return Value
Number of bytes that are written to the socket or -1 if an error occurs.
Example
sock_type *socket;
char theBuffer [512];
int len, bytes_sent;
. . .
bytes_sent = sock_fastwrite(socket, (byte*)theBuffer, len);
See Also
sock_write (page 99)
Zobrazit stránku 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 121 122

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

Žádné komentáře