Bull DPX/20 Betriebsanweisung Seite 394

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 393
5-26 SOMobjects Base Toolkit Programmers Reference
Manual
someSetRegDataEventMask Method
Purpose
Sets the generic event mask within the registration data using NULL terminated event type
list.
IDL Syntax
void someSetRegDataEventMask (
in long eventType,
in va_list ap);
Description
This allows setting the event mask within the registration data object. Essentially, this tells
EMan what kind of event is being registered with it. The event type list is a series of
constants defined in the eventmsk.h file. Although the current interface supports a NULL
terminated list of event types, currently each registration with EMan names only one event
type. Thus, one usually gives only one named constant as the event type and follows it with
a NULL parameter (see the following example).
Parameters
receiver A pointer to an object of class SOMEEMRegisterData.
ev A pointer to the Environment structure for the calling method.
eventType A bit constant indicating the type of event being registered with EMan.
ap Additional event types (usually NULL).
Example
#include <eman.h>
long regId1;
int msgsock;
...
/* Register msgsock socket with EMan for further communication */
_someClearRegData( data, env );
_someSetRegDataEventMask( data, env, EMSinkEvent, NULL );
/* The above call enables EMan to know (during registration) that
we are talking about a Sink Event */
_someSetRegDataSink( data, env, msgsock );
_someSetRegDataSinkMask( data, env, EMInputReadMask);
regId = _someRegisterProc( some_gEMan, env, data,
ReadSocketAndPrint, ”READMSG” );
Original Class
SOMEEMRegisterData
Related Information
Methods: someSetRegDataSink, someClearRegData
Seitenansicht 393
1 2 ... 389 390 391 392 393 394 395 396 397 398 399 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare