Added acknowledge to CameraTcpServer (a client must wait a response before sending images)

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@378 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe
2014-08-06 03:00:17 +00:00
parent 072f6cc8f5
commit da4ee8637b
4 changed files with 55 additions and 45 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ int main(int argc, char * argv[])
}
server.connectToHost(ipAddress, port);
if(!server.waitForConnected())
if(!server.waitForReadyRead())
{
printf("ERROR: Unable to connect to %s:%d\n", ipAddress.toStdString().c_str(), port);
return -1;