Prosoft-technology MVI69-ADMNET Manual do Utilizador Página 87

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 122
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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);
Vista de página 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 121 122

Comentários a estes Manuais

Sem comentários