ctSysQueueRead Read data from the queue. Short Name ctSysQueueRead() Type ISAM function. Declaration NINT ctSysQueueRead(NINT qhandle, pVOID buffer, NINT buflen, LONG timeout) Description Data is read from the queue by calling ctSysQueueRead(). Parameter qhandle is a system queue handle returned by a call to ctSysQueueOpen(), while timeout specifies a millisecond time that ctSysQueueRead() will block waiting for data. A timeout of ctWAITFOREVER will cause ctSysQueueRead() to block until data is available in the queue. Parameter buffer is a pointer to a memory block large enough to hold the next message in the queue, and buflen indicates the size in bytes of buffer. ctSysQueueMlen() may be used to retrieve the next message length, while ctSysQueueCount() may be used to retrieve the number of messages waiting in the queue. Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example TEXT msg[128]; NINT eRet = ctSysQueueRead(qhandle, msg, sizeof(msg), ctWAITFOREVER);
printf("ctSysQueueRead failed with code %d\n", eRet);
Limitations Client/Server mode only. See also ctSysQueueMlen(), ctSysQueueCount() |
||||||||||||||||||