# tibemsConnection_GetClientId

Function

## Purpose

Get the client ID of a connection.

## C Declaration

    tibems_status tibemsConnection_GetClientId(
        tibemsConnection connection,
        const char** clientId );

## COBOL Call

    CALL "tibemsConnection_GetClientId"
         USING BY VALUE connection,
               BY REFERENCE clientId,
               RETURNING tibems-status
    END-CALL.

Note: `connection` and `clientId` have usage pointer.

## Parameters

Parameter | Description
--- | ---
`connection` | Get the client ID of this connection.
`clientId` | Store a pointer to the ID string in this location.

## Remarks

Each connection uses a unique client ID.

Client IDs partition the namespace of durable subscribers; see `tibemsSession_CreateDurableSubscriber`.

## See Also

`tibemsConnection_SetClientId`

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