beautypg.com

ProSoft Technology MVI69-ADMNET User Manual

Page 103

background image

MVI-ADMNET ♦ 'C' Programmable

WATTCP API Functions

'C' Programmable Application Development Module with Ethernet

Developer's Guide

ProSoft Technology, Inc.

Page 103 of 122

February 20, 2013

sock_puts

Syntax

int sock_puts( sock_type *skType, byte *data);

Parameters

e

Socket that will be used to put string data to.

data

Pointer to the string that will be sent.

Description
This function sends a string to the socket. Character new line "\n", will be
attached to the end of the string.

Return Value
The length that is written to the socket.

Example

sock_type *socket;
char data [512];
int len;

. . .

len = sock_puts(socket, data);
printf("Put %d\n", len);

See Also
sock_putc (page 104)