wangzhengquan
2020-06-12 9f2f9eed5ca905c4641b296773ac21aaa735624d
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);