All Products
Search
Document Center

ApsaraMQ for RocketMQ:Parameters for the TCP client SDK for C++ (Community Edition)

Last Updated:Mar 11, 2026

Configure these parameters when you use the TCP client SDK for C++ of the Community Edition to connect to ApsaraMQ for RocketMQ.

Common parameters

The following parameters apply to both producers and consumers.

ParameterTypeRequiredDefaultDescription
NameServerStringYesNoneThe TCP endpoint of your ApsaraMQ for RocketMQ instance. Get this value from the Instance Details page in the ApsaraMQ for RocketMQ console.
GroupIDStringYesNoneThe ID of the consumer or producer group created in the ApsaraMQ for RocketMQ console. For more information, see Terms.
AccessKeyStringYesNoneThe AccessKey ID for authentication. For more information, see Create an AccessKey pair.
SecretKeyStringYesNoneThe AccessKey secret for authentication. For more information, see Create an AccessKey pair.
ChannelStringNoALIYUNThe user channel. Keep the default value unless otherwise specified.