wangzhengquan
2020-06-16 794acdd7e45b2305f25fdddc6fd43e7648216807
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "usg_common.h"
#include "netdisk.h"
#include "safe_queue.h"
#include "login_store.h"
#include <jsoncpp/json/json.h>
#include <nng/nng.h>
#include <nng/protocol/reqrep0/rep.h>
#include <nng/protocol/reqrep0/req.h>
 
 
typedef int (*RequestHandleFun)(nng_socket sock, Json::Value request);
 
int handleLogin(nng_socket sock, Json::Value request);
int handleLogout(nng_socket sock, Json::Value request);
int handleDownloadByTime(nng_socket sock, Json::Value request);
int handleDownloadByTimeAsync(nng_socket sock, Json::Value request);
int handleGetDeviceInfo(nng_socket sock, Json::Value request);