# tibemsConsumerInfo_GetCurrentMsgCountSentByServer

Function

## Purpose

Get the number of messages sent to consumer and not yet acknowledged by consumer's session.

## C Declaration

    tibems_status tibemsConsumerInfo_GetCurrentMsgCountSentByServer(
        tibemsConsumerInfo consumerInfo,
        tibems_long* count);

## COBOL Call

    CALL "tibemsConsumerInfo_GetCurrentMsgCountSentByServer"
     USING BY VALUE consumerInfo,
           BY REFERENCE count,
           RETURNING tibems-status
    END-CALL.

## Parameters

Parameter | Description
--- | ---
`consumerInfo` | Get the number of messages sent to this consumer.
`count` | The function stores the number of messages in this location.

## Remarks

This function gets the number of messages sent to but not yet acknowledged by the consumer. For topic consumers, this number is included in the number of pending messages returned by `tibemsConsumerInfo_GetPendingMessageCoun`t.

## See Also

`tibemsConsumerInfo_GetPendingMessageCount`

Copyright © Cloud Software Group, Inc. All rights reserved.