home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / mnl-rpc++-2.3.1 / part01 / example / calcsvc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-24  |  751 b   |  35 lines

  1. // -*- c++ -*-
  2. #ifndef _CALCSERVICE_H_
  3. #define _CALCSERVICE_H_
  4. static char _calcsvc_h_[]
  5. = "calcsvc.h,v 2.3 1992/06/15 19:13:15 mnl Exp";
  6.  
  7. // calcsvc.h,v
  8. // Revision 2.3  1992/06/15  19:13:15  mnl
  9. // Fixed a few bugs, clarified interface.
  10. //
  11.  
  12. #ifdef __GNUG__
  13. #pragma interface
  14. #endif
  15.  
  16. #include "rpc++/request.h"
  17.  
  18. #define CALCSVC 0x20100001
  19.  
  20. struct CalcRequests
  21. {
  22.   static RpcRequest Add;
  23.   static RpcRequest Sub;
  24.   static RpcRequest Times;
  25.   static RpcRequest Div;
  26.   static RpcRequest Inc;
  27.   static RpcRequest IToA;
  28.   static RpcRequest Reset; // for testing proc without args
  29.   static RpcRequest Sleep; // for testing async
  30.   static RpcRequest Msg;   // for testing string passing
  31.   static RpcRequest Invalid; // for testing error handling
  32. };
  33.  
  34. #endif
  35.