提交 5284e474 authored 作者: blu's avatar blu

http post files

上级 c5cea2ab
...@@ -40,10 +40,10 @@ using namespace zmqhelper; ...@@ -40,10 +40,10 @@ using namespace zmqhelper;
class EvSlicer: public TinyThread { class EvSlicer: public TinyThread {
private: private:
#define URLOUT_DEFAULT "slices" #define URLOUT_DEFAULT "slices"
#define NUM_DAYS_DEFAULT 5 #define NUM_DAYS_DEFAULT 2
#define MINUTES_PER_SLICE_DEFAULT 2 #define MINUTES_PER_SLICE_DEFAULT 5
// 2 days, 10 minutes per record // 2 days, 5 minutes per record
#define NUM_SLICES_DEFAULT (24 * NUM_DAYS_DEFAULT * 60 / MINUTES_PER_SLICE_DEFAULT)
void *pSubCtx = nullptr, *pDealerCtx = nullptr; // for packets relay void *pSubCtx = nullptr, *pDealerCtx = nullptr; // for packets relay
void *pSub = nullptr, *pDealer = nullptr, *pDaemonCtx = nullptr, *pDaemon = nullptr; void *pSub = nullptr, *pDealer = nullptr, *pDaemonCtx = nullptr, *pDaemon = nullptr;
string urlOut, urlPub, urlRouter, devSn, mgrSn, selfId, pullerGid; string urlOut, urlPub, urlRouter, devSn, mgrSn, selfId, pullerGid;
...@@ -52,13 +52,12 @@ private: ...@@ -52,13 +52,12 @@ private:
AVFormatContext *pAVFormatRemux = nullptr; AVFormatContext *pAVFormatRemux = nullptr;
AVFormatContext *pAVFormatInput = nullptr; AVFormatContext *pAVFormatInput = nullptr;
AVDictionary *pOptsRemux = nullptr; AVDictionary *pOptsRemux = nullptr;
// load from db
vector<int> *sliceIdxToName = nullptr;
int *streamList = nullptr; int *streamList = nullptr;
time_t tsLastBoot, tsUpdateTime; time_t tsLastBoot, tsUpdateTime;
json config; json config;
thread thMsgProcessor; thread thMsgProcessor;
string drport = "5549"; string drport = "5549";
json slices;
int handleMsg(vector<vector<uint8_t> > v){ int handleMsg(vector<vector<uint8_t> > v){
int ret = 0; int ret = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论