GetAsyncConnectStatus
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
Function Description
Obtains the status of all asynchronous connections.
Prototype
1 | Status GetAsyncConnectStatus(std::map<AscendString, AsyncConnectStatus> &statuses) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
statuses |
Output |
Asynchronous connection status. The enumerated values are as follows: NOT_CONNECT: not connected CONNECT_PENDING: link establishment to be executed CONNECTING: link establishment in progress CONNECTED: link established successfully CONNECT_FAILED: link establishment failed DISCONNECT_PENDING: disconnection to be executed DISCONNECTING: disconnection in progress |
Example
Click GitCode, select the matching version, and obtain the sample from the examples/cpp directory.
Returns
- SUCCESS: Success.
- Other values: Failure.
Constraints
- Before calling this API, call the Initialize API to complete initialization.
- The return value of the API only indicates whether the API call is successful. The status of the asynchronous connection establishment/disconnection task is indicated by the output parameter.