ProSoft Technology MVI69-ADMNET User Manual
Page 87
Advertising

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);
Advertising