/* * main.cpp * * Created on: 2014-05-05 * Author: mathieu */ #include #include #include "ImagesTcpServer.h" void showUsage() { printf("\ntcpImagesServer [options] port\n" " Options:\n" " --hz #.# Image rate (default 10 Hz).\n" " --host #.#.#.# Set host address.\n" " --path \"\" Set a path of a directory of images or a video file.\n"); exit(-1); } int main(int argc, char * argv[]) { QString ipAddress; float hz = 10.0f; QString path; if(argc < 2) { showUsage(); } for(int i=1; i