Prosoft-technology MVI69-ADMNET Manuale Utente Pagina 87

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 122
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 86
MVI-ADMNET 'C' Programmable WATTCP API Functions
'C' Programmable Application Development Module with Ethernet Developer's Guide
ProSoft Technology, Inc. Page 87 of 122
February 20, 2013
sock_mode
Syntax
word sock_mode( sock_type *skType, word mode);
Parameters
skType
Current socket Type that will be used to set up socket mode.
mode
The following is the available mode:
TCP_BINARY
0
default
TCP_ASCII
1
treat as ASCII data
UDP_CRC
0
checksum enable
UDP_NOCRC
2
checksum disable
TCP_NAGLE
0
default
TCP_NONAGLE
4
used for real time application.
Description
This function is used set the socket transfer protocol mode.
Return Value
Current mode.
Example
sock_type *socket;
. . .
sock_mode(socket, TCP_MODE_NONAGLE);
Vedere la pagina 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 121 122

Commenti su questo manuale

Nessun commento