---
title: CommLink
description: "通信连接信息，包含用于创建通信Channel的协议、地址等信息。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/programug/commopdev/hcclopdevapi_07_0004.html
sourcePath: /source/zh/canncommercial/900/programug/commopdev/hcclopdevapi_07_0004.html
indexId: c471e7b70a5cd2f20636af1c521e8156d9bf7d858abcb903d14408e6b497f7d675
---
# CommLink

#### 功能说明

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


#### 定义原型

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