mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-03 04:07:50 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -89,7 +89,7 @@ namespace OpenWifi {
|
|||||||
int reason=0;
|
int reason=0;
|
||||||
while(running_) {
|
while(running_) {
|
||||||
|
|
||||||
std::cout << __LINE__ << std::endl;
|
// std::cout << __LINE__ << std::endl;
|
||||||
/* if(!ProcessCommands()) {
|
/* if(!ProcessCommands()) {
|
||||||
reason=1;
|
reason=1;
|
||||||
running_=false;
|
running_=false;
|
||||||
|
|||||||
@@ -47,21 +47,20 @@ namespace OpenWifi {
|
|||||||
void AddCommand(u_char C);
|
void AddCommand(u_char C);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::atomic_bool running_=false;
|
mutable std::atomic_bool running_=false;
|
||||||
volatile std::atomic_bool loop_done_=false;
|
|
||||||
std::string device_address_;
|
std::string device_address_;
|
||||||
std::recursive_mutex M_;
|
std::recursive_mutex M_;
|
||||||
std::string id_;
|
std::string id_;
|
||||||
std::string token_;
|
std::string token_;
|
||||||
std::string desc_;
|
std::string desc_;
|
||||||
std::string serial_;
|
std::string serial_;
|
||||||
char sid_=0;
|
char sid_=0;
|
||||||
Poco::FIFOBuffer inBuf_{64000};
|
Poco::FIFOBuffer inBuf_{64000};
|
||||||
std::array<char,32000> scratch_{0};
|
std::array<char,32000> scratch_{0};
|
||||||
std::size_t waiting_for_bytes_{0};
|
std::size_t waiting_for_bytes_{0};
|
||||||
u_char last_command_=0;
|
u_char last_command_=0;
|
||||||
uint64_t conn_id_=0;
|
uint64_t conn_id_=0;
|
||||||
std::vector<u_char> commands_;
|
std::vector<u_char> commands_;
|
||||||
|
|
||||||
Poco::Logger & Logger();
|
Poco::Logger & Logger();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user