beautypg.com

ProSoft Technology MVI69-ADMNET User Manual

Page 79

background image

MVI-ADMNET ♦ 'C' Programmable

WATTCP API Functions

'C' Programmable Application Development Module with Ethernet

Developer's Guide

ProSoft Technology, Inc.

Page 79 of 122

February 20, 2013

Function Category

Function Name

Description

Receive Socket

sock_read & sock_fastread

Read data coming into a port.

tcp_listen

Listen to a message coming in to a
specified port.

sock_gets

Get String

sock_getc

Get Character

sock_dataready

Return the number data ready to be
read.

rip

Remove carriage returns and line feeds.

Miscellaneous

inet_ntoa

Build ASCII representation of an IP
address with a user supply string from
decimal representation of the IP
address.

inet_addr

Convert string dot address to host
format.

ntohs

Convert network word to host word

htons

Convert host word to network word

ntohl

Convert network longword to host
longword

htonl

Convert host longword to network
longword