bb6a9235c3
- Ostinato Client - will start the server as a child process at startup and terminate it at exit - Ostinato Server (Drone) - is now a system tray application - if not able to bind to a IP/Port successfully, informs the user and exits - the GUI is now nothing more than a TextLabel Others - If a getStats() request is pending, the client will not queue up any more requests till a reply is received for the pending one - Nitpicks in the Payload protocol Widget, PortsWindow Widget
26 lines
432 B
C++
26 lines
432 B
C++
#include "drone.h"
|
|
|
|
int myport;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
Drone drone;
|
|
|
|
app.setApplicationName(drone.objectName());
|
|
|
|
if (argc > 1)
|
|
myport = atoi(argv[1]);
|
|
|
|
if (!drone.init())
|
|
exit(-1);
|
|
|
|
drone.setWindowFlags(drone.windowFlags()
|
|
| Qt::WindowMaximizeButtonHint
|
|
| Qt::WindowMinimizeButtonHint);
|
|
drone.showMinimized();
|
|
app.exec();
|
|
return 0;
|
|
}
|
|
|