产品 |
是否支持 |
---|---|
x |
|
√ |
|
x |
|
x |
|
x |
客户端向服务端发送请求。
1 | template <typename ReqType, typename ResType> uint32_t OpenHiva::ServiceClient::InvokeService(ReqType req, ResType &res, const uint32_t timeout = 5000U) |
参数名 |
输入/输出 |
说明 |
---|---|---|
req |
输入 |
请求消息类型,必须是HivaMessage的子类。 |
timeout |
输入 |
时间限制,用户可自行设置,默认是5000ms。 |
res |
输出 |
用户从服务端获取的响应消息类型,必须是HivaMessage的子类。 |
返回uint32_t类型,成功返回HIVA_SUCCESS,该值为0;其他值为失败。