Broadcasts a remote procedure call to all locally connected networks.
#include <rpc/rpc.h>
enum clnt_stat clnt_broadcast (prognum, versnum, procnum, inproc) enum clnt_stat clnt_broadcast (in, outproc, out, eachresult) u_long prognum, versnum, procnum; xdrproc_t inproc; char *in; xdrproc_t outproc; char *out; resultproc_t eachresult;
The clnt_broadcast subroutine broadcasts a remote procedure call to all locally connected networks. The remote procedure is identified by the prognum, versnum, and procnum parameters on the workstation identified by the host parameter.
Broadcast sockets are limited in size to the maximum transfer unit of the data link. For Ethernet, this value is 1500 bytes.
When a client broadcasts a remote procedure call over the network, a number of server processes respond. Each time the client receives a response, the clnt_broadcast subroutine calls the eachresult routine. The eachresult routine takes the following form:
eachresult (out, *addr) char *out; struct sockaddr_in *addr;
If the eachresult subroutine returns a value of 0, the clnt_broadcast subroutine waits for more replies. Otherwise, the clnt_broadcast subroutine returns with the appropriate results.
This subroutine is part of Base Operating System (BOS) Runtime.
The callrpc subroutine.
List of RPC Programming References.
Remote Procedure Call (RPC) Overview for Programming and Sockets Overview in AIX Version 4.3 Communications Programming Concepts.