Reference Manual AFDX / ARINC 664 Application Interface Library
13
Section 4 – Function Reference: Library Administration Functions
4
4
.
.
1
1
.
.
1
1
.
.
2
2
F
F
d
d
x
x
I
I
n
n
i
i
t
t
Prototype:
AiReturn FdxInit(TY_SERVER_LIST **ppx_ServerNames);
D
D
r
r
i
i
v
v
e
e
r
r
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
-
Purpose:
This function initialises the entire application interface and must be called at first in an
application program, before any other function is applied. This function returns a list of
computer names of the network environment, where the ANS (AIM network server) is running
and FDX boards are available to work with.
Note:
For this version this function will return only “local” - server. Use function
FdxQueryServerConfig to connect another server.
Input:
None
Output:
TY_FDX_SERVER_LIST
**ppx_ServerNames
Pointer to a pointer to a list of structured elements, containing the names of the
available servers (e.g. “\\SW-PC-06” or “192.168.0.119”) and a pointer to the next
element. The end of the list is indicated by a NULL pointer in the next pointer entry.
A special case is the name is “local” which describes the computer where the
Interface Library is running
#define MAX_SERVER_NAME_LEN 32
typedef struct _server_list{
struct _server_list *px_Next;
AiChar
auc_ServerName[MAX_SERVER_NAME_LEN];
const AiUInt32 ul_StructId;
} TY_SERVER_LIST;
struct _server_list *px_Next
Pointer to the next element of the List. A NULL pointer indicates the last element of the list.
AiChar auc_ServerName[MAX_SERVER_NAME_LEN]
Server name (e.g. “\\SW-PC-06” or “192.168.0.119”). The name ‘local’ indicates that the server
is the machine the interface library is running.
Summary of Contents for AFDX / ARINC 664
Page 2: ......