ProSoft Technology MVI69-ADMNET User Manual
Page 108

WATTCP API Functions
MVI-ADMNET ♦ 'C' Programmable
Developer's Guide
'C' Programmable Application Development Module with Ethernet
Page 108 of 122
ProSoft Technology, Inc.
February 20, 2013
sock_gets
Syntax
int sock_gets( sock_type *skType, byte *data, int len);
Parameters
skType
Socket that will be used to get string data from.
data
Pointer to the string return.
len
Specified length for the function to get the string.
Description
This function is used for obtaining a string from the socket. The len parameter
specifies how long the string will be read.
Return Value
The length read from the socket is returned.
Example
sock_type *socket;
char data [512];
int len;
. . .
len = sock_gets(socket, data, 100);
printf("Get %d\n", len);
See Also
sock_getc (page 109)