Merge pull request #377 from Tectu/feature/fix-jtag

Fix ambiguous function call to bind()
This commit is contained in:
Dolu1990 2023-11-13 09:02:50 +01:00 committed by GitHub
commit 1849aa4419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public:
memset(serverAddr.sin_zero, '\0', sizeof serverAddr.sin_zero);
//---- Bind the address struct to the socket ----//
bind(serverSocket, (struct sockaddr *) &serverAddr, sizeof(serverAddr));
::bind(serverSocket, (struct sockaddr *) &serverAddr, sizeof(serverAddr));
//---- Listen on the socket, with 5 max connection requests queued ----//
listen(serverSocket,1);
@ -174,4 +174,4 @@ public:
schedule(tooglePeriod);
}
};
};