API Guide
601355 Rev A API Functions 2-569
Functions
6 * This executes the VSCMD_Connect API
call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_connect_execute(void)
14 #else
15 VST_BOOLEAN vst_connect_execute()
16 #endif
17 {
18 VST_BOOLEAN rc =
VSE_FALSE;
19 VST_ENTERPRISE_ID
TargetEnterpriseID;
20 VST_SOCKADDR_IN
socketaddress;
21 VST_PROGRAM_NUMBER prognum;
22 VST_COMMAND_HANDLE cmd;
23 VST_VERSION_NUMBER versnum;
24 VST_PROCEDURE_NUMBER procnum;
25 int temp;
26
27 /* get parameters from user */
28 printf(“*** Connect parameters
***\n” );
29 printf(“Enter Enterprise ID ==> “ );
30 TargetEnterpriseID =
(VST_ENTERPRISE_ID)
atoi(gets(input));
31 printf(“Enter program number ==>”);
32 prognum = (VST_PROGRAM_NUMBER)
atol(gets(input));
33 printf(“Enter Version Number ==> “ );
34 versnum = (VST_VERSION_NUMBER)
atol(gets(input));
35 printf(“Enter Procedure Number ==> “
);