RPC -WR5441 Specifikace Strana 19

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 34
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 18
Remote Procedure Call Programming Guide Page 19
fprintf(stderr, "can’t decode arguments\n");
/*
* We are silent in the face of protocol errors
*/
break;
}
/*
* Code here to render string s, but send no reply!
*/
break;
default:
svcerr_noproc(transp);
return;
}
/*
* Now free string allocated while decoding arguments
*/
svc_freeargs(transp, xdr_wrapstring, &s);
}
Of course the service could have one procedure that takes the string and a boolean to indicate whether or
not the procedure should respond.
In order for a client to take advantage of batching, the client must perform RPC calls on a TCP-based trans-
port and the actual calls must have the following attributes: 1) the result’s XDR routine must be zero
NULL), and 2) the RPC call’s timeout must be zero.
Zobrazit stránku 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 33 34

Komentáře k této Příručce

Žádné komentáře