src/experiments/k4/K4ClientPIC/ClientPIC.cpp
void CClientPIC::D_GetNumMotors()
{
  int status;
  this->out_msg.id = _D_GETNUMMOTORS;
  //this->out_msg.num = num;
  status = Send(this->pid,&out_msg,&in_msg,sizeof(out_msg),sizeof(in_msg));
  nmotors = in_msg.msg.fdGetNumMotors.nmotors;
  printf("Receive nmotors = %d \n",nmotors);
}
/* this function requests the PIC Daemon to figure out the total number of
   motors residing in its cluster */
this function requests the PIC Daemon to figure out the total number of
motors residing in its cluster
this function requests the PIC Daemon to figure out the total number of motors residing in its cluster
void CClientPIC::D_GetNumMotors()
{
  int status;
  this->out_msg.id = _D_GETNUMMOTORS;
  status = Send(this->pid,&out_msg,&in_msg,sizeof(out_msg),sizeof(in_msg));
  nmotors = in_msg.msg.fdGetNumMotors.nmotors;
  printf("Receive nmotors = %d \n",nmotors);
}
void CClientPIC :: D_GetNumMotors ( ) { int status ; this -> out_msg . id = _D_GETNUMMOTORS ; status = Send ( this -> pid , & out_msg , & in_msg , sizeof ( out_msg ) , sizeof ( in_msg ) ) ; nmotors = in_msg . msg . fdGetNumMotors . nmotors ; printf ( " \n " , nmotors ) ; }
this function requests the PIC Daemon to figure out the total number of
motors residing in its cluster
this function requests the PIC Daemon to figure out the total number of motors residing in its cluster
//this->out_msg.num = num;