API Guide
601355 Rev A API Functions 2-837
Functions
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(“*** Disconnect parameters
***\n” );
29 printf(“Enter Enterprise ID ==> “ );
30 TargetEnterpriseID =
atoi(gets(input));
31 printf(“Enter Program Number ==> “ );
32 prognum = atoi(gets(input));
33 printf(“Enter Version Number ==> “ );
34 versnum = atoi(gets(input));
35 printf(“Enter Procedure Number ==> “
);
36 procnum = atoi(gets(input));
37 printf(“Enter Socket sin family ==> “
);
38 temp = atoi(gets(input));
39 socketaddress.sin_family = (short)
temp;
40 printf(“Enter Socket sin port ==> “
);
41 temp = atoi(gets(input));
42 socketaddress.sin_port = (u_short)
temp;
43 printf(“Enter Socket sin address ==>
“ );
44 temp = atoi(gets(input));
45 socketaddress.sin_addr = (u_long)
temp;
46
47 /* create the command handle */
48 /* Note that the command handle is
not */
49 /* destoyed in this routine, but in
*/
50 /* vst_dispatch when final status is
received. */