OpenHiva::ServiceServer::Enable

Description

Enables a server.

Prototype

uint32_t OpenHiva::ServiceServer::Enable()

Parameters

None

Returns

The return value is of the uint32_t type. If the operation is successful, HIVA_SUCCESS (value being 0) is returned. If other values are returned, the operation fails.

Usage

A server can work properly only after the Enable interface is successfully invoked.

Precautions

  • If the service is not enabled or fails to be enabled, OpenHiva::ServiceClient::InvokeService of the client times out and fails to be invoked.
  • This interface cannot be invoked for multiple times.