NIM PC Cross Platform SDK
nim_rts.h
Go to the documentation of this file.
1
8#ifndef NIM_SDK_DLL_API_NIM_RTS_H_
9#define NIM_SDK_DLL_API_NIM_RTS_H_
10
11#include "nim_rts_def.h"
12#include "public_defines.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
27NIM_SDK_DLL_API void nim_rts_set_proxy(enum NIMProxyType type, const char* host, int port, const char* user, const char* password);
28
29// 发起相关
46NIM_SDK_DLL_API void nim_rts_start(int channel_type, const char* uid, const char* json_extension, nim_rts_start_cb_func cb, const void* user_data);
47
57NIM_SDK_DLL_API void nim_rts_set_start_notify_cb_func(nim_rts_start_notify_cb_func cb, const void* user_data);
58
74NIM_SDK_DLL_API void nim_rts_create_conf(const char* name,
75 const char* custom_info,
76 const char* json_extension,
78 const void* user_data);
79
90NIM_SDK_DLL_API void nim_rts_join_conf(const char* name, const char* json_extension, nim_rts_join_cb_func cb, const void* user_data);
91
107NIM_SDK_DLL_API void nim_rts_ack(const char* session_id,
108 int channel_type,
109 bool accept,
110 const char* json_extension,
112 const void* user_data);
113
122NIM_SDK_DLL_API void nim_rts_set_ack_notify_cb_func(nim_rts_ack_notify_cb_func cb, const void* user_data);
123
130NIM_SDK_DLL_API void nim_rts_set_sync_ack_notify_cb_func(nim_rts_sync_ack_notify_cb_func cb, const void* user_data);
131
132// 状态回调相关
139NIM_SDK_DLL_API void nim_rts_set_connect_notify_cb_func(nim_rts_connect_notify_cb_func cb, const void* user_data);
140
148NIM_SDK_DLL_API void nim_rts_set_member_change_cb_func(nim_rts_member_change_cb_func cb, const void* user_data);
149
150// 控制接口
164NIM_SDK_DLL_API void nim_rts_control(const char* session_id,
165 const char* info,
166 const char* json_extension,
168 const void* user_data);
169
176NIM_SDK_DLL_API void nim_rts_set_control_notify_cb_func(nim_rts_control_notify_cb_func cb, const void* user_data);
177
185NIM_SDK_DLL_API void nim_rts_set_vchat_mode(const char* session_id, int mode, const char* json_extension);
186
187// 结束相关
196NIM_SDK_DLL_API void nim_rts_hangup(const char* session_id, const char* json_extension, nim_rts_hangup_res_cb_func cb, const void* user_data);
197
204NIM_SDK_DLL_API void nim_rts_set_hangup_notify_cb_func(nim_rts_hangup_notify_cb_func cb, const void* user_data);
205
215NIM_SDK_DLL_API void nim_rts_relogin(const char* session_id,
216 int channel_type,
217 const char* json_extension,
219 const void* user_data);
220
221// 数据相关
232NIM_SDK_DLL_API void nim_rts_send_data(const char* session_id, int channel_type, const char* data, unsigned int size, const char* json_extension);
233
240NIM_SDK_DLL_API void nim_rts_set_rec_data_cb_func(nim_rts_rec_data_cb_func cb, const void* user_data);
241
242#ifdef __cplusplus
243};
244#endif //__cplusplus
245#endif // NIM_SDK_DLL_API_NIM_RTS_H_
NIMProxyType
Definition: nim_global_def.h:186
NIM_SDK_DLL_API void nim_rts_ack(const char *session_id, int channel_type, bool accept, const char *json_extension, nim_rts_ack_res_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_proxy(enum NIMProxyType type, const char *host, int port, const char *user, const char *password)
NIM_SDK_DLL_API void nim_rts_set_sync_ack_notify_cb_func(nim_rts_sync_ack_notify_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_vchat_mode(const char *session_id, int mode, const char *json_extension)
NIM_SDK_DLL_API void nim_rts_join_conf(const char *name, const char *json_extension, nim_rts_join_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_control_notify_cb_func(nim_rts_control_notify_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_start(int channel_type, const char *uid, const char *json_extension, nim_rts_start_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_start_notify_cb_func(nim_rts_start_notify_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_control(const char *session_id, const char *info, const char *json_extension, nim_rts_control_res_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_member_change_cb_func(nim_rts_member_change_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_send_data(const char *session_id, int channel_type, const char *data, unsigned int size, const char *json_extension)
NIM_SDK_DLL_API void nim_rts_set_hangup_notify_cb_func(nim_rts_hangup_notify_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_relogin(const char *session_id, int channel_type, const char *json_extension, nim_rts_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_connect_notify_cb_func(nim_rts_connect_notify_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_create_conf(const char *name, const char *custom_info, const char *json_extension, nim_rts_create_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_hangup(const char *session_id, const char *json_extension, nim_rts_hangup_res_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_rec_data_cb_func(nim_rts_rec_data_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_rts_set_ack_notify_cb_func(nim_rts_ack_notify_cb_func cb, const void *user_data)
实时会话(数据通道) 接口相关的常量函数等定义头文件
void(* nim_rts_opt_cb_func)(int code, const char *session_id, int channel_type, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:364
void(* nim_rts_control_notify_cb_func)(const char *session_id, const char *info, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:314
void(* nim_rts_hangup_notify_cb_func)(const char *session_id, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:335
void(* nim_rts_ack_notify_cb_func)(const char *session_id, int channel_type, bool accept, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:239
void(* nim_rts_member_change_cb_func)(const char *session_id, int channel_type, int type, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:283
void(* nim_rts_hangup_res_cb_func)(int code, const char *session_id, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:325
void(* nim_rts_join_cb_func)(int code, const char *session_id, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:212
void(* nim_rts_control_res_cb_func)(int code, const char *session_id, const char *info, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:301
void(* nim_rts_start_cb_func)(int code, const char *session_id, int channel_type, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:179
void(* nim_rts_rec_data_cb_func)(const char *session_id, int channel_type, const char *uid, const char *data, unsigned int size, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:347
void(* nim_rts_start_notify_cb_func)(const char *session_id, int channel_type, const char *uid, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:193
void(* nim_rts_connect_notify_cb_func)(const char *session_id, int channel_type, int code, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:270
void(* nim_rts_sync_ack_notify_cb_func)(const char *session_id, int channel_type, bool accept, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:257
void(* nim_rts_ack_res_cb_func)(int code, const char *session_id, int channel_type, bool accept, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:226
void(* nim_rts_create_cb_func)(int code, const char *json_extension, const void *user_data)
Definition: nim_rts_def.h:202
NIM SDK 及 NIM ChatRoom SDK 公用头文件