mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-09-05 17:10:59 +02:00
Better error message on socket (#1477)
* checking errno * improved socket error message * improved message * decode error code * format * clearer msg * report write errors, handle SIGPIPE * retry and cleaned up timeout * removed read/write in DataSocket
This commit is contained in:
@@ -66,4 +66,11 @@ std::pair<std::string, uint16_t> ParseHostPort(const std::string &s) {
|
||||
return std::make_pair(host, port);
|
||||
}
|
||||
|
||||
std::string to_lower(const std::string &s) {
|
||||
std::string result = s;
|
||||
std::transform(result.begin(), result.end(), result.begin(),
|
||||
[](unsigned char c) { return std::tolower(c); });
|
||||
return result;
|
||||
}
|
||||
|
||||
}; // namespace sls
|
||||
Reference in New Issue
Block a user