HixlServerDesc

Server description.

struct HixlServerDesc {
  const EndpointDesc *endpoint_list;
  const char *server_ip;
  uint32_t server_port;
  uint32_t endpoint_list_num;
  uint8_t reserved[104] = {};
};

The following table describes the involved fields.

Field

Type

Description

server_ip

const char*

Listening IP address.

server_port

uint32_t

Listening port.

endpoint_list

const EndpointDesc*

Pointer to the endpoint description array. Endpoint description definition. For details, see https://gitcode.com/cann/hcomm/blob/master/include/hcomm_res_defs.h.

endpoint_list_num

uint32_t

Number of endpoints.

reserved

uint8_t[104]

Reserved field for the HixlServerDesc configuration, which is used for future extension. The total size of the structure is 128 bytes.