How to start RPC service

Arquer Stephane stephane.arquer at c-s.cnes.fr
Mon Oct 22 11:15:11 CDT 2007


No, I tried it and there is always the same msg.
The error is given by the following function (TSP_rpc_run) during svc_register.

-------------------------------------------------------------------
 static void TSP_rpc_run(TSP_rpc_request_config_t *config)
{
  int32_t rpc_progid = TSP_get_progid(config->server_number);

  /* svc_create does not exist for linux, we must use the deprecated function */
  /* pmap_unset (rpc_progid, TSP_RPC_VERSION_INITIAL); */

  config->xprt = svctcp_create(RPC_ANYSOCK, 0, 0);
  if (config->xprt == NULL) 
    {
      STRACE_ERROR(("Cannot create TCP service"));
      return;
    }

  if (!svc_register(config->xprt, rpc_progid, TSP_RPC_VERSION_INITIAL, tsp_rpc_1, IPPROTO_TCP))
    {
      STRACE_ERROR(("RPC server unable to register ProgId=%X",  rpc_progid));
      return;
    }

  STRACE_DEBUG(("RPC server is being be started with ProgId=%X", rpc_progid));
  
  STRACE_DEBUG(("launching svc_run..."));
  svc_run();
  STRACE_INFO(("svc_run returned"));
}
-------------------------------------------------------------------

Thanks.

sa


> -----Message d'origine-----
> De : Till Straumann [mailto:strauman at slac.stanford.edu] 
> Envoyé : lundi 22 octobre 2007 17:43
> À : Arquer Stephane
> Cc : rtems-users at rtems.org
> Objet : Re: How to start RPC service
> 
> 
> Arquer Stephane wrote:
> > Hello,
> >
> > I'm trying to run Transport Sample Protocol with an rtems 
> application. 
> > The tsp provider need RPC for the communication with the 
> consumer, the 
> > server return the error message : "Cannot register the 
> service: RPC: 
> > Timed out" . How can I start RPC service ?
> >
> > Thanks.
> >
> > Stéphane.
> >
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.com 
> > http://rtems.rtems.org/mailman/listinfo/rtems-users
> >   
> You probably have forgotten to start the portmapper:
> 
> rtems_rpc_start_portmapper( task_priority );
> 
> HTH
> -- Till
> 
> 




More information about the rtems-users mailing list