#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);
|