src/SimulatorSocketServer.cpp
branchv_0
changeset 7 b355abd4b887
parent 5 980a27d138f7
child 10 da93f3667a52
equal deleted inserted replaced
6:f81d43b74209 7:b355abd4b887
    33 
    33 
    34 	bool listnening = server->listen(path);
    34 	bool listnening = server->listen(path);
    35 
    35 
    36 	if (listnening) {
    36 	if (listnening) {
    37 		std::wcout << L"Listening on: " << path.toStdWString() << std::endl;
    37 		std::wcout << L"Listening on: " << path.toStdWString() << std::endl;
       
    38 		std::wcout << L"To allow client connections do:" << std::endl;
       
    39 		std::wcout << L"ln -s " << path.toStdWString() << " /var/run/spnav.sock" << std::endl;
    38 
    40 
    39 		connect(server, &QLocalServer::newConnection, [path, this]() {
    41 		connect(server, &QLocalServer::newConnection, [path, this]() {
    40 			std::wcout << L"New connection on: " << path.toStdWString() << std::endl;
    42 			std::wcout << L"New connection on: " << path.toStdWString() << std::endl;
    41 			connections.push_back(server->nextPendingConnection());
    43 			connections.push_back(server->nextPendingConnection());
    42 		});
    44 		});