16 MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
2.1.2 ApiConnectToServer
Prototype:
AiInt16 ApiConnectToServer( AiUChar * pszNetworkAdress, AiInt16 *w_ServerBoards );
Driver Command:
none
Purpose:
Establishes a network connection to a specified server PC, where the AIM Network
Server (ANS) is located.
Input
A
A
i
i
U
U
C
C
h
h
a
a
r
r
*
*
p
p
s
s
z
z
N
N
e
e
t
t
w
w
o
o
r
r
k
k
A
A
d
d
r
r
e
e
s
s
s
s
Name of the PC, where the ANS is located.
Name of the PC, where the ANS is located
(e.g. “SW-PC-06” or “192.168.0.119”)
Output
A
A
i
i
I
I
n
n
t
t
1
1
6
6
*
*
w
w
_
_
S
S
e
e
r
r
v
v
e
e
r
r
B
B
o
o
a
a
r
r
d
d
s
s
No installed AIM board found on server PC
Number of AIM boards installed on server PC
Return Value
All API functions return API_OK if no error occurred. If the return value is not equal
to API_OK the function ApiGetErrorDescription can be used to obtain an error
description.