Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IEventQ::getNextEvent ( P6EVENTTYPE pnType,
p6ICom **  ppIoIface,
p6IIoBuffer **  ppIoBuffer,
P6IOCONTEXT **  ppIoContext,
P6VOID **  ppHandleContext,
P6INTERVAL  tTimeout 
)
pure virtual

This method waits for the specified interval for an event to arrive, removes the event from the queue and returns it to the caller for processing.

Parameters
pnType[ out ] The address of a P6EVENTYPE in which will be placed the type of the event being retrieved.
ppIoIface[ out ] The address of an p6ICom interface pointer in which will be placed the addref'd I/O interface associated with the event.
pIoBuffer[ out ] The address of a p6IIoBuffer pointer in which will be placed the addref'd I/O buffer interface associated with the event.
ppIoContext[ out ] The address of a P6IOCB pointer in which will be placed the P6IOCB associated with the event. This will be NULL in the case of newly accepted connections. This is a per/IO context, don't forget to free it when you are done handling the event.
ppHandleContext[ out ] The address of a P6VOID pointer in which will be placed the user supplied context associated with this event.
tTimeout[ in ] The amount of time to wait for an event before returning. Specify P6WAITINFINITE to wait forever for the next event.
Returns