rpcgen(1) General Commands Manual rpcgen(1) (NAME) rpcgen - RPC (SYNOPSIS) rpcgen infile rpcgen [-Dname[=value]] [-T] [-K secs] infile rpcgen -c|-h|-l|-m|-M|-t [-o outfile ] infile rpcgen [-I] -s nettype [-o outfile] infile rpcgen -n netid [-o outfile] infile (DESCRIPTION) rpcgen C RPC . rpcgen C RPC ( Remote Procedure Call Language) . rpcgen . infile proto.x rpcgen proto.h XDR proto_xdr.c proto_svc.c proto_clnt.c . -T (dispatch table) RPC proto_tbl.i . -Sc . proto_client.c . -Ss . proto_server.c . ( inetd listen) . (transports) 0 . PM_TRANSPORT . rpcgen (server handles) NETPATH /etc/netconfig . : . (rpcgen -I) . RPC_SVC_FG . RPC . #define RPC . RPC : o o o XDR . . <<>> . rpcgen -s . -n netid . infile rpcgen . C cc -E [ cc(1)] rpcgen . rpcgen rpcgen : RPC_HDR (header) RPC_XDR XDR RPC_SVC RPC_CLNT .TP RPC_TBL RPC . `%' rpcgen . infile rpcgen xdr_ . RPC/XDR . XDR . : -a . -b SunOS4.1 rpc . . . -5 SysVr4 rpc . Transport Independent RPC Svr4 . rpcgen SunOS4.1 rpc . -c XDR. -C ANSI C. ++C . . -k K&R C. ANSI C . -Dname[=value] name. #define . value value 1 . . -h C ( ). -T RPC . -I inetd . -s . -I . -K secs rpcgen 120 . -K . -K 0 . -K -1 . listen(1M) . . rpcgen -K -1 . -l . -m "main" . (callback- routines) "main" . -M (multithread- safe) rpcgen . . -n netid netid. netid netconfig . . -N (newstyle) rpcgen. . C . . (oldstyle) rpcgen . . -o outfile . ( -c -h -l -m -n -s -Sc -Sm -Ss -t). -s nettype nettype. netpath visible circuit_n circuit_v datagram_n datagram_v tcp udp [ rpc(3N) ]. . : . -Sc rpcgen. -Sm Makefile . -Ss . . -t RPC. -T RPC ..P -c -h -l -m -s -t -D -T . (NOTES) RPC . . (scoping) . . -n netid . (EXAMPLES) : $ rpcgen -T prot.x : prot.h prot_clnt.c prot_svc.c prot_xdr.c prot_tbl.i. C ( ) . $ rpcgen -h prot.x -DTEST (stubs) datagram_n : $ rpcgen -s datagram_n -DTEST prot.x netid tcp : $ rpcgen -n tcp -o prot_svc.c prot.x (SEE ALSO) cc(1). rpcgen(1)