1
This commit is contained in:
parent
a15a050def
commit
fde05078e6
@ -251,9 +251,9 @@ void App::UnInit()
|
||||
msg_mutex_ = nullptr;
|
||||
}
|
||||
|
||||
#if 0
|
||||
int App::Run()
|
||||
{
|
||||
#if 0
|
||||
int ret = 0;
|
||||
f8::UdpLog::Instance()->Info("gameserver running", {});
|
||||
last_run_tick_ = a8::XGetTickCount();
|
||||
@ -271,8 +271,8 @@ int App::Run()
|
||||
delta_time = end_tick - begin_tick;
|
||||
}
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void App::AddSocketMsg(SocketFrom_e sockfrom,
|
||||
int sockhandle,
|
||||
|
@ -19,10 +19,9 @@ public:
|
||||
virtual void Init() override;
|
||||
virtual void UnInit() override;
|
||||
virtual void Update() override;
|
||||
virtual bool HasTask() override;
|
||||
virtual void DispatchSocketMsg(f8::MsgHdr* hdr) override;
|
||||
|
||||
int Run();
|
||||
|
||||
void AddSocketMsg(SocketFrom_e sockfrom,
|
||||
int sockhandle,
|
||||
long ip_saddr,
|
||||
@ -40,7 +39,6 @@ public:
|
||||
private:
|
||||
void QuickExecute(int delta_time);
|
||||
void SlowerExecute(int delta_time);
|
||||
bool HasTask();
|
||||
|
||||
void DispatchMsg();
|
||||
|
||||
|
@ -128,7 +128,7 @@ std::string HttpProxy::HttpGet(
|
||||
|
||||
std::string HttpProxy::CreateRequestId()
|
||||
{
|
||||
return request_prefix_ + a8::XValue(f8::App::Instance()->NewNodeUuid()).GetString();
|
||||
return request_prefix_ + f8::App::Instance()->NewGlobalUuid();
|
||||
}
|
||||
|
||||
std::shared_ptr<HttpProxyRequest> HttpProxy::GetRequest(const std::string& req_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user