HixlCSServerDestroy

Function Description

Destroys a server instance and releases related resources.

Prototype

HixlStatus HixlCSServerDestroy(HixlServerHandle server_handle);

Parameters

Parameter

Input/Output

Description

server_handle

Input

Handle to a server instance.

Returns

  • HIXL_SUCCESS: Success.
  • HIXL_PARAM_INVALID: Incorrect parameter.
  • Other values: Failure.

Constraints

  • This API must be used together with HixlCSServerCreate.
  • You are advised to disconnect the link and deregister the memory before calling this API.
  • The server needs to call this API after all clients have disconnected. If the server exits prematurely, an error will occur during client disconnection and data transmission.
  • When the client needs to perform remote read and write operations on the server's address, the server must wait until these operations are completed before calling this API; otherwise, the operation will fail.
  • This API cannot be called concurrently with other APIs.