catid / wlanoptimizer Goto Github PK
View Code? Open in Web Editor NEWSingle-header C library that fixes WiFi performance issues for online gaming and other low-latency real-time network traffic.
Single-header C library that fixes WiFi performance issues for online gaming and other low-latency real-time network traffic.
$ x86_64-w64-mingw32-g++ --static wifibetter.cpp WLANOptimizer.h WLANOptimizer.cpp -o wifilagkill.exe -std=c++1y
WLANOptimizer.cpp:37:13: error: ‘mutex’ in namespace ‘std’ does not name a type
static std::mutex APILock;
^~~~~
WLANOptimizer.cpp: In function ‘int OptimizeWLAN(int)’:
WLANOptimizer.cpp:133:26: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> locker(APILock);
^~~~~
WLANOptimizer.cpp:133:26: error: ‘mutex’ is not a member of ‘std’
WLANOptimizer.cpp:133:31: error: template argument 1 is invalid
std::lock_guard<std::mutex> locker(APILock);
^
WLANOptimizer.cpp:133:40: error: ‘APILock’ was not declared in this scope
std::lock_guard<std::mutex> locker(APILock);
^~~~~~~
WLANOptimizer.cpp:133:40: note: suggested alternative: ‘HeapLock’
std::lock_guard<std::mutex> locker(APILock);
^~~~~~~
HeapLock
WLANOptimizer.cpp: At global scope:
WLANOptimizer.cpp:231:18: error: ‘mutex’ in namespace ‘std’ does not name a type
mutable std::mutex StartStopLock;
^~~~~
WLANOptimizer.cpp:234:18: error: ‘mutex’ in namespace ‘std’ does not name a type
mutable std::mutex WakeLock;
^~~~~
WLANOptimizer.cpp:237:10: error: ‘condition_variable’ in namespace ‘std’ does not name a type
std::condition_variable WakeCondition;
^~~~~~~~~~~~~~~~~~
WLANOptimizer.cpp:240:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<std::thread> Thread;
^~~~~~~~~~
WLANOptimizer.cpp: In member function ‘void WLANOptimizerThread::Start()’:
WLANOptimizer.cpp:252:26: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~
WLANOptimizer.cpp:252:26: error: ‘mutex’ is not a member of ‘std’
WLANOptimizer.cpp:252:31: error: template argument 1 is invalid
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^
WLANOptimizer.cpp:252:49: error: ‘StartStopLock’ was not declared in this scope
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~~~~~~~~~
WLANOptimizer.cpp:252:49: note: suggested alternative: ‘startStopLocker’
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~~~~~~~~~
startStopLocker
WLANOptimizer.cpp:254:10: error: ‘Thread’ was not declared in this scope
if (!Thread)
^~~~~~
WLANOptimizer.cpp:254:10: note: suggested alternative: ‘_hread’
if (!Thread)
^~~~~~
_hread
WLANOptimizer.cpp:257:23: error: ‘make_shared’ is not a member of ‘std’
Thread = std::make_shared<std::thread>(&WLANOptimizerThread::Loop, this);
^~~~~~~~~~~
WLANOptimizer.cpp:257:23: note: suggested alternative: ‘make_signed’
Thread = std::make_shared<std::thread>(&WLANOptimizerThread::Loop, this);
^~~~~~~~~~~
make_signed
WLANOptimizer.cpp:257:40: error: ‘thread’ is not a member of ‘std’
Thread = std::make_shared<std::thread>(&WLANOptimizerThread::Loop, this);
^~~~~~
WLANOptimizer.cpp:257:40: note: suggested alternative: ‘tera’
Thread = std::make_shared<std::thread>(&WLANOptimizerThread::Loop, this);
^~~~~~
tera
WLANOptimizer.cpp: In member function ‘void WLANOptimizerThread::Stop()’:
WLANOptimizer.cpp:263:26: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~
WLANOptimizer.cpp:263:26: error: ‘mutex’ is not a member of ‘std’
WLANOptimizer.cpp:263:31: error: template argument 1 is invalid
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^
WLANOptimizer.cpp:263:49: error: ‘StartStopLock’ was not declared in this scope
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~~~~~~~~~
WLANOptimizer.cpp:263:49: note: suggested alternative: ‘startStopLocker’
std::lock_guard<std::mutex> startStopLocker(StartStopLock);
^~~~~~~~~~~~~
startStopLocker
WLANOptimizer.cpp:265:9: error: ‘Thread’ was not declared in this scope
if (Thread)
^~~~~~
WLANOptimizer.cpp:265:9: note: suggested alternative: ‘_hread’
if (Thread)
^~~~~~
_hread
WLANOptimizer.cpp:271:35: error: ‘mutex’ is not a member of ‘std’
std::unique_lock<std::mutex> wakeLocker(WakeLock);
^~~~~
WLANOptimizer.cpp:271:35: error: ‘mutex’ is not a member of ‘std’
WLANOptimizer.cpp:271:40: error: template argument 1 is invalid
std::unique_lock<std::mutex> wakeLocker(WakeLock);
^
WLANOptimizer.cpp:271:53: error: ‘WakeLock’ was not declared in this scope
std::unique_lock<std::mutex> wakeLocker(WakeLock);
^~~~~~~~
WLANOptimizer.cpp:271:53: note: suggested alternative: ‘wakeLocker’
std::unique_lock<std::mutex> wakeLocker(WakeLock);
^~~~~~~~
wakeLocker
WLANOptimizer.cpp:272:13: error: ‘WakeCondition’ was not declared in this scope
WakeCondition.notify_all();
^~~~~~~~~~~~~
WLANOptimizer.cpp:284:5: error: ‘Thread’ was not declared in this scope
Thread = nullptr;
^~~~~~
WLANOptimizer.cpp:284:5: note: suggested alternative: ‘_hread’
Thread = nullptr;
^~~~~~
_hread
WLANOptimizer.cpp: In member function ‘void WLANOptimizerThread::Loop()’:
WLANOptimizer.cpp:302:31: error: ‘mutex’ is not a member of ‘std’
std::unique_lock<std::mutex> locker(WakeLock);
^~~~~
WLANOptimizer.cpp:302:31: error: ‘mutex’ is not a member of ‘std’
WLANOptimizer.cpp:302:36: error: template argument 1 is invalid
std::unique_lock<std::mutex> locker(WakeLock);
^
WLANOptimizer.cpp:302:45: error: ‘WakeLock’ was not declared in this scope
std::unique_lock<std::mutex> locker(WakeLock);
^~~~~~~~
WLANOptimizer.cpp:302:45: note: suggested alternative: ‘HeapLock’
std::unique_lock<std::mutex> locker(WakeLock);
^~~~~~~~
HeapLock
WLANOptimizer.cpp:305:13: error: ‘WakeCondition’ was not declared in this scope
WakeCondition.wait_for(locker, kOptimizeInterval);
^~~~~~~~~~~~~
Contents of wifibetter.cpp
:
#include "WLANOptimizer.h"
#include <cstdlib>
using namespace std;
int main()
{
StartWLANOptimizerThread();
system("pause");
return 0;
}
Hi I'm new where i can do easy setup? sorry
hi
Is there any chance of providing a stand-alone binary version? This could be a really nice thing to run at startup on some systems.
Could you please introduce the principle of WLAN transmission optimization in this project?
Is it physical layer optimization or congestion control algorithm?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.