5-28 SOMobjects Base Toolkit Programmer’s 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
Comentários a estes Manuais