HccnRpingGetPayload

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

☓

Atlas training products

☓

Description

Obtains the custom payload of the target ping packet.

Prototype

1
HccnResult HccnRpingGetPayload(HccnRpingCtx rpingCtx, void **payload, uint32_t *payloadLen)

Parameters

Parameter

Input/Output

Description

rpingCtx

Input

RPing object returned by the HccnRpingInit API.

payload

Output

Pointer to the memory space that stores the custom payload in all packets.

payloadLen

Output

Memory size occupied by the total payloadLen (sum of all payload lengths) obtained.

Returns

Parsing result of the error code of the HccnResult type.

Constraints

None