NIM PC Cross Platform SDK
nim_cpp_client.cpp File Reference

全局管理功能;主要包括SDK初始化/清理、客户端登录/退出等功能 More...

#include "nim_cpp_wrapper/api/nim_cpp_client.h"
#include <atomic>
#include <future>
#include "nim_cpp_wrapper/helper/nim_sdk_loader_helper.h"
#include "nim_cpp_wrapper/nim_cpp_api.h"
#include "nim_client.h"

Namespaces

namespace  nim
 namespace nim
 

Functions

static void nim::CallbackLogin (const char *json_res, const void *callback)
 
static void nim::CallbackRelginRequestToken (char *&token, uint32_t *length, const char *json_res, const void *callback)
 
static void nim::CallbackLogout (const char *json_res, const void *callback)
 
static void nim::CallbackKickout (const char *json_res, const void *callback)
 
static void nim::CallbackDisconnect (const char *json_res, const void *callback)
 
static void nim::CallbackMutliSpotLogin (const char *json_res, const void *callback)
 
static void nim::CallbackKickother (const char *json_res, const void *callback)
 
void nim::CallbackGetServerCurrentTime (int rescode, bool calc_local, uint64_t time, const void *callback)
 
void nim::UnregNIMCallback ()
 
static void nim::CallbackSyncMultiportPushConfig (int rescode, const char *content, const char *json_extension, const void *user_data)
 
static void nim::CallbackMultiportPushConfig (int rescode, const char *content, const char *json_extension, const void *user_data)
 

Variables

SDKConfig nim::g_nim_sdk_config_
 
std::string nim::g_app_token = ""
 
static Client::LoginCallback nim::g_cb_relogin_ = nullptr
 
static Client::ReloginRequestTokenCallback nim::g_cb_relogin_request_token_ = nullptr
 
static Client::KickoutCallback nim::g_cb_kickout_ = nullptr
 
static Client::DisconnectCallback nim::g_cb_disconnect_ = nullptr
 
static Client::MultiSpotLoginCallback nim::g_cb_multispot_login_ = nullptr
 
static Client::KickOtherCallback nim::g_cb_kickother_ = nullptr
 
static Client::MultiportPushConfigCallback nim::g_cb_sync_multiport_push_switch_ = nullptr
 

Detailed Description

全局管理功能;主要包括SDK初始化/清理、客户端登录/退出等功能

Date
2015/09/21