mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-10-30 07:31:28 +01:00
1 parent
7173785b29
commit
6bf9dbf6d3
89 files changed
+1366
-1210
No files matched your search
@@ -33,8 +33,7 @@ int open_socket(int port) {
|
||||
|
||||
const std::string portname = std::to_string(port);
|
||||
if (getaddrinfo(host, portname.c_str(), &hints, &res)) {
|
||||
throw RuntimeError("Failed at getaddrinfo with " +
|
||||
std::string(host));
|
||||
throw RuntimeError("Failed at getaddrinfo with " + std::string(host));
|
||||
}
|
||||
int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
|
||||
if (fd == -1) {
|
||||
|
||||
Reference in new issue
Block a user