1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #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 handleDownloadByTime(nng_socket sock, Json::Value request);
| int handleDownloadByTimeAsync(nng_socket sock, Json::Value request);
|
|