/*===========================================================================

  RCP_FUNC.H    Global variables and functions for IRIS_SERVER 

=============================================================================*/
#define RPC_FUNC_H

#ifdef RPC_FUNC_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

#ifdef __cplusplus
extern "C" {
#endif

UINT2 rpcServerUpAndRunning(void);

void rpcCreateAndRqstProgNum
(char *server_hostname_a,
 char *client_hostname_a);

void rpcDestroy();

UINT2 rpcSendData(
   char  *client_hostname_a, /*Server will repsone back to client name*/
   SINT4 iclient_prognum_a,  /*Server will respond back to client prognum*/
   SINT4 iconnect_state_a,   /* Server connect state */
   const char* scmd_a,      /* Request command (max SCC_HDR_SZ) */
   const char* sreply_a,    /* Request reply string */
   const void* pidata_a,    /* Optional data */
   const SINT4 ilen_a );    /* Number of bytes of data */

#ifdef __cplusplus
}
#endif

#undef EXTERN
