home *** CD-ROM | disk | FTP | other *** search
- <H3>SYNOPSIS</H3>
- <BR>
- int rpc(char *name, object params);
- <BR>
- <BR>
- The rpc() function is used to execute Sambar Server RPC functions.
- On success, the any output from the RPC is sent directly back to the
- client.
- <BR>
- <H3>RETURN VALUES</H3>
- Returns 0 on success, -1 on failure.
- <P>
- <H3>EXAMPLES</H3>
- <BLOCKQUOTE><CODE><PRE>
- char *hostname = "www.microsoft.com";
- params = allocParameters();
- setParameter(params, "sitename", hostname);
-
- ret = rpc("whois", params);
- if (ret == -1)
- printf("WhoIs <I>%s<I> failed.", hostname);
- </PRE></CODE></BLOCKQUOTE>
-