JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
ONC+ Developer's Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


1.  Introduction to ONC+ Technologies

2.  Introduction to TI-RPC

3.  rpcgen Programming Guide

4.  Programmer's Interface to RPC

5.  Advanced RPC Programming Techniques

6.  Porting From TS-RPC to TI-RPC

7.  Multithreaded RPC Programming

8.  Extensions to the Sun RPC Library

9.  NIS+ Programming Guide

A.  XDR Technical Note

B.  RPC Protocol and Language Specification

C.  XDR Protocol Specification

D.  RPC Code Examples

Directory Listing Program and Support Routines (rpcgen)

Time Server Program (rpcgen)

Add Two Numbers Program (rpcgen)

Spray Packets Program (rpcgen)

Print Message Program With Remote Version

Batched Code Example

Non-Batched Example

E.  portmap Utility

F.  Writing a Port Monitor With the Service Access Facility (SAF)



Time Server Program (rpcgen)

Example D-4 rpcgen Program: time.x

 * time.x: Remote time protocol
program TIMEPROG {
     version TIMEVERS {
             unsigned int TIMEGET(void) = 1;
     } = 1;
} = 0x20000044;

#ifdef RPC_SVC
%int *
%    static int thetime;
%    thetime = time(0);
%    return (&thetime);