Bull DPX/20 Guia do Utilizador Página 396

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 395
5-28 SOMobjects Base Toolkit Programmers Reference
Manual
someSetRegDataSinkMask Method
Purpose
Sets the sink mask within the registration data object.
IDL Syntax
void someSetRegDataSinkMask (
in unsigned long sinkmask);
Description
The sink mask within the registration data allows one to express interest in different events
of the same event source. For example, using this mask one can express interest in being
notified when there is input for reading, when the resource is ready for writing output, or just
when exceptions occur.
Parameters
receiver A pointer to an object of class SOMEEMRegisterData.
ev A pointer to the Environment structure for the calling method.
sinkmask A bit mask indicating the types of events of interest on a given sink.
Example
#include <eman.h>
long regId1;
int msgsock;
...
/* Register msgsock socket with EMan for further communication */
_someClearRegData( data, env );
_someSetRegDataEventMask( data, env, EMSinkEvent, NULL );
_someSetRegDataSink( data, env, msgsock );
_someSetRegDataSinkMask( data, env,
EMInputReadMask|EMInputExceptMask);
/* The above call expresses interest in knowing when there is
input to be read from the socket and when there is an exception
condition associated with this socket. */
regId = _someRegisterProc( some_gEMan, env, data,
ReadSocketAndPrint, ”READMSG” );
Original Class
SOMEEMRegisterData
Related Information
Methods: someSetRegDataSink, someClearRegData
Vista de página 395
1 2 ... 391 392 393 394 395 396 397 398 399 400 401 ... 423 424

Comentários a estes Manuais

Sem comentários