#include "midas.h"
#include <stdio.h>
Go to the source code of this file.
◆ RPC_MYTEST
◆ main()
Definition at line 54 of file rpc_clnt.cxx.
   55{
   62   float f;
   64 
   65   printf(
"Remote host name: ");
 
   67 
   68   
   70 
   71   
   74      printf(
"Cannot connect to RPC server running on %s at port 1750.\n", 
host_name);
 
   75      return 0;
   76   }
   77 
   78   f = 3.5f;
   80 
   81   
   82   rpc_client_call(
hConn, 
RPC_MYTEST, 1, 2, 3l, f, 
d, &b, &w, &
i, &f, &
d);
 
   83 
   84   printf(
"\nResult should be:  2 4 6 7.0 9.0\n");
 
   85   printf(
"Result is:         %d %d %d %1.1f %1.1lf\n", b, w, 
i, f, 
d);
 
   86 
   89 
   90   
   92   return 1;
   93}
char * ss_gets(char *string, int size)
INT rpc_client_connect(const char *host_name, INT port, const char *client_name, HNDLE *hConnection)
INT rpc_client_disconnect(HNDLE hConn, BOOL bShutdown)
INT rpc_client_call(HNDLE hConn, DWORD routine_id,...)
INT rpc_register_client(const char *name, RPC_LIST *list)
char host_name[HOST_NAME_LENGTH]
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
 
 
◆ rpc_list
Definition at line 20 of file rpc_clnt.cxx.
   20                      {
   21 
   24     ,
   26     ,
   28     ,
   30     ,
   32     ,
   34     ,
   36     ,
   38     ,
   40     ,
   42     ,
   43     {0}
   44     }
   45    }
   46   ,
   47 
   48   {0}
   49 
   50};