home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / sambar / sambar51p.exe / syshelp / cscript / funcs / RPC.HTM < prev    next >
Encoding:
Text File  |  2002-01-05  |  592 b   |  23 lines

  1. <H3>SYNOPSIS</H3>
  2. <BR>
  3.      int rpc(char *name, object params);
  4. <BR>
  5. <BR>
  6. The rpc() function is used to execute Sambar Server RPC functions.
  7. On success, the any output from the RPC is sent directly back to the
  8. client.
  9. <BR>
  10. <H3>RETURN VALUES</H3>
  11. Returns 0 on success, -1 on failure.
  12. <P>
  13. <H3>EXAMPLES</H3>
  14. <BLOCKQUOTE><CODE><PRE>
  15. char *hostname = "www.microsoft.com";
  16. params = allocParameters();
  17. setParameter(params, "sitename", hostname);
  18.  
  19. ret = rpc("whois", params);
  20. if (ret == -1)
  21.     printf("WhoIs <I>%s<I> failed.", hostname);
  22. </PRE></CODE></BLOCKQUOTE>
  23.