mt_size(3xmt) — Subroutines
(c) Digital Equipment Corporation. 1994. All rights reserved.
Name
mt_size − Returns the number of communiques and reports in the input queue.
Syntax
OM_return_code = mt_size (session, number)
| Argument | Data Type | Access |
| session | OM_private_object | read only |
| number | MH_object_count | write only |
| return_code | OM_return_code |
C Binding
OM_return_code mt_size (session, number) OM_private_object session;
MH_object_count ∗number;
Arguments
SessionAn established MT session between a Client and the Service; an instance of the Session class.
NumberThe number of unreserved objects in the input queue. If that number exceeds , the routine returns Return Value indicates success.
Description
This routine returns the number of communiques and reports in the input queue to which a session provides access.
Return Values
MH_RC_FEATURE_UNAVAILABLE
OM_MEMORY_INSUFFICIENT
OM_NETWORK_ERROR
OM_SUCCESS
OM_SYSTEM_ERROR
MH_RC_WRONG_CLASS
Plus errors returned from:
om_instance
Examples
/∗
∗∗ Check to see if anything’s waiting on delivery queue
∗/
om_status = mt_size (session, &queue_size);