Optimize network traffic a bit:
- Send keepalive packets every second
- Don't send keepalive packet if there was action packet within a second
Time between turns in net game is reduced to 1 second now (was 2 seconds)
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}