昇腾社区首页
中文
注册
开发者
下载

CommLink

功能说明

通信连接信息,包含用于创建通信Channel的协议、地址等信息。

定义原型

typedef struct {
    CommAbiHeader header; /* 兼容Abi字段 */
    EndpointDesc srcEndpointDesc; /* 源Endpoint描述类型 */
    EndpointDesc dstEndpointDesc; /* 目的Endpoint描述类型 */
    union {
        uint8_t raws[128];
        struct {
            CommProtocol linkProtocol; /* 通信协议类型 */
        };
    } linkAttr;
} CommLink;