API Guide
2-570 API Functions 601355 Rev A
36 procnum = (VST_PROCEDURE_NUMBER)
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 /* destroyed in this routine, but in
*/
50 /* vst_dispatch when final status is
received. */
51 cmd = VS_Command_Create();
52 if (cmd != (VST_COMMAND_HANDLE )NULL)
53 {
54 /* Send the command to the VolServ
software. */
55 /* Note that status is not
processed here. */
56 /* Instead, it is processed in the
*/
57 /* vst_dispatch routine. Also,
note that */
58 /* default values such as timeout,
value */
59 /* retry limit and priority are
set as */
60 /* default parameters. */
61 rc = VSCMD_Connect(cmd,