
WATTCP API Functions MVI-ADMNET ♦ 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module with Ethernet
Page 78 of 122 ProSoft Technology, Inc.
February 20, 2013
6.1 WATTCP API Functions
This API is a TCP/IP stack, which is used on ADMNET API. Parts of this
document are brought from Waterloo TCP by Erik Engelke. Each section
provides detailed programming information for each WATTCP API library
function. The calling convention for each API function is shown in 'C' format.
The API library routines are categorized according to functionality as shown in
the following table.
TCP/IP system initialization.
Determine socket connection.
Generate socket session to a host
computer for TCP protocol.
tcp_open_fast will have no wait for if the
host computer is not found.
Generate socket session to a host
computer for UDP protocol.
udp_open_fast will have no wait for if the
host computer is not found.
Convert string IP Address into a
longword.
Setup socket protocol transfer mode for
the particular use (UDP or TCP).
Check if connect has been established.
Check if timer has been expired.
Return ASCII error message if there is
any.
Return ASCII message what is the
current state.
Returned value is the IP address in host
format.
Release all the TCP/IP system initialized
by sock_init.
sock_write &
sock_fastwrite
Write data out to a port. sock_fastwrite
will have no check for data written out to
the socket.
Flush data out to the socket to make
sure all the data has been sent.
Call before write the data out to make
sure that after write the data out to the
socket, buffer will be flushed.
Put string onto the buffer.
Put a character onto the buffer.
Komentáře k této Příručce