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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user