HixlCSServerCreate

Function Description

Creates and initializes a server instance.

Prototype

HixlStatus HixlCSServerCreate(const HixlServerDesc *server_desc,
                              const HixlServerConfig *config,
                              HixlServerHandle *server_handle);

Parameters

Parameter

Input/Output

Description

server_desc

Input

Server description, including the listening IP address/port and endpoint list.

config

Input

Server configuration, which is reserved and not used currently.

server_handle

Output

Created HixlServerHandle.

Returns

  • HIXL_SUCCESS: Success.
  • HIXL_PARAM_INVALID: Incorrect parameter.
  • Other values: failure or error code (check the constants to get the error code)

Constraints

  • If the endpoint of the local device is used, call aclrtSetDevice before calling this API.
  • If the API call fails, server_handle may be invalid.