Application Development Function Library: ADMNET API
MVI-ADMNET
♦
'C' Programmable
Ethernet Module
ProSoft Technology, Inc.
Page 37 of 90
December 13, 2006
5
Application Development Function Library:
ADMNET API
In This Chapter
¾
Functions......................................................... 37
¾
ADMNET API Initialize Functions........................................... 39
¾
Socket Functions............................... 41
¾
ADMNET API Send Socket Functions ................................... 43
¾
Receive Socket Functions............................... 45
¾
Miscellaneous Functions ................................. 47
5.1 ADMNET
API
Functions
This section provides detailed programming information for each of the ADMNET
API library functions. The calling convention for each API function is shown in C
format.
The same set of API functions is supported for all of the modules in the MVI
family.
The API library routines are categorized according to functionality as shown in
the following table.
Function Category
Function Name
Description
ADM_init_socket
Initialize number of sockets used on
each port number and assign name
to each port.
Initialize Socket
ADM_open_sk
Open and reopen each socket
separately after socket is initialized or
closed.
ADM_release_sockets
Release all sockets that have been
initialized using ADM_init_socket.
Release Socket
ADM_close_sk
Close each socket separately without
release socket.
ADM_send_socket
Send socket according to name
assign throughout initialization
process as either UDP or TCP. This
function also takes care of opening
socket connection.
Send Socket
ADM_send_sk
Send socket with previously open
with function ADM_open_sk.