Compaq Reliable Transaction Router Manual de usuario Pagina 58

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 78
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 57
Application Programming Interfaces
Sample C client
code
Example of an open channel call in an RTR client program:
status = rtr_open_channel(&Channel,
Flags,
Facility,
Recipient,
RTR_NO_PEVTNUM,
Access,
RTR_NO_NUMSEG,
RTR_NO_PKEYSEG);
if (Status != RTR_STS_OK)
Sample C server
code
Example of a receive message call in an RTR server program:
status = rtr_receive_message(&Channel,
RTR_NO_FLAGS,
RTR_ANYCHAN,
MsgBuffer,
DataLen,
RTR_NO_TIMOUTMS,
&MsgStatusBlock);
if (status != RTR_STS_OK)
A client can have one or multiple channels, and a server can
have one or multiple channels. A server can use concurrent
servers, each with one channel. How you create your design
depends on whether you have a single CPU or a multiple CPU
machine, and on your overall design goals and implementation
requirements.
4–10 RTR Interfaces
Vista de pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 77 78

Comentarios a estos manuales

Sin comentarios