API Guide
2-112 API Functions 601355 Rev A
42 ProgramNumber =
atol(gets(input));
43 printf(“Enter version number ==>
“);
44 VersionNumber =
atol(gets(input));
45 printf(“Enter procedure number
==> “);
46 ProcedureNumber =
atol(gets(input));
47 printf(“Enter Protocol ==> “);
48 Protocol = atol(gets(input));
49 /* set the fields */
50 rc = VS_Connect_SetFields(h,
51 VSID_ENTERPRISE_ID,
EnterpriseID,
52 VSID_SOCKADDR_IN,
SocketAddress,
53 VSID_PROGRAM_NUMBER,
ProgramNumber,
54 VSID_VERSION_NUMBER,
VersionNumber,
55 VSID_PROCEDURE_NUMBER,
ProcedureNumber,
56 VSID_PROTOCOL,
Protocol,
57 VSID_ENDFIELD);
58 if (rc)
59 {
60 vst_print_connect(h);
61 }
62 VS_Connect_Destroy(h);
63 }
64 return(rc);
65 }
Notes After VS_Connect_Destroy has been called for a connect
handle, that handle is no longer valid and should not be used.
See Also vsapi(l),