MVI-ADMNET
♦
'C' Programmable
WATTCP API Functions
Ethernet Module
Page 58 of 90
ProSoft Technology, Inc.
December 13, 2006
sock_mode
Syntax:
word sock_mode( sock_type *skType, word mode);
Parameters:
skType
Current socket Type that will be used to setup socket mode.
mode
The following is the available mode:
TCP_BINARY 0 default
TCP_ASCII
1
tread as an 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);