summaryrefslogtreecommitdiff
path: root/src/hos_client.h
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2020-12-01 16:12:41 +0800
committer彭宣正 <[email protected]>2020-12-02 09:48:01 +0800
commita9bbbc320cfe433ccb566552c2e7f43916eb67bf (patch)
tree7b68a67bf5bacb4183455f0287fd6fc04c9ef846 /src/hos_client.h
parent34d03a35f044a23cc05e7ae82b27fc92805ba6a0 (diff)
更新fs2和hos_client_create接口
Diffstat (limited to 'src/hos_client.h')
-rw-r--r--src/hos_client.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/hos_client.h b/src/hos_client.h
index c549f372..730df87c 100644
--- a/src/hos_client.h
+++ b/src/hos_client.h
@@ -77,13 +77,14 @@ typedef void (*put_finished_callback)(bool, const char *, const char *, const ch
/*************************************************************************************
* 函数名: hos_client_init
- * 参数: const char *endpoint 目的地址,如”http://192.168.44.12:9098/hos“
+ * 参数: const char *serverip 目的地址,如"192.168.44.12"
+ * size_t port 端口号
* const char *accesskeyid AWS access key ID,如”default“
* const char *secretkey AWS secret key,如”default“
* size_t thread_sum 线程总数
* 返回值: 成功返回一个非空句柄,失败返回NULL。(失败原因都是因为输入参数不合法)
*************************************************************************************/
-hos_client_handle hos_client_create(const char *endpoint, const char *accesskeyid, const char *secretkey, size_t pool_size);
+hos_client_handle hos_client_create(const char *serverip, size_t port, const char *accesskeyid, const char *secretkey, size_t pool_size);
/*************************************************************************************
* 函数名: hos_create_bucket
* 参数: hos_client_handle handle 非空句柄
@@ -105,11 +106,11 @@ int hos_create_bucket(hos_client_handle handle, const char *bucket);
*************************************************************************************/
void hos_set_cache_size(hos_client_handle handle, size_t cache_size);
/*************************************************************************************
- * 函数名: hos_set_cache_times
+ * 函数名: hos_set_cache_count
* 参数: hos_client_handle handle 非空句柄
- * size_t cache_times append 模式追加次数
+ * size_t cache_count append 模式追加次数
*************************************************************************************/
-void hos_set_cache_times(hos_client_handle handle, size_t cache_times);
+void hos_set_cache_count(hos_client_handle handle, size_t cache_count);
/*************************************************************************************
* 函数名: hos_set_thread_sum
* 参数: hos_client_handle handle 非空句柄