mirror of
https://github.com/modelec/detection_pot.git
synced 2026-03-27 09:49:43 +01:00
Check if the clientSocket is a non-blocking socket
This commit is contained in:
@@ -265,6 +265,7 @@ void ArucoDetector::setNonBlocking(int sockfd) {
|
||||
}
|
||||
|
||||
void ArucoDetector::sendData(int serverSocket, const std::string& data) {
|
||||
std::cout << "Sending Data" << std::endl;
|
||||
int clientSocket = accept(serverSocket, nullptr, nullptr);
|
||||
if(clientSocket == -1 && errno != EWOULDBLOCK && errno != EAGAIN) {
|
||||
perror("accept");
|
||||
|
||||
Reference in New Issue
Block a user