changeset 381 | 9b35bc329d23 |
parent 380 | d193dd1d8a7e |
child 423 | 947ab54de4b7 |
380:d193dd1d8a7e | 381:9b35bc329d23 |
---|---|
5 #include <sstream> |
5 #include <sstream> |
6 |
6 |
7 std::string NetworkErrno::build_str (std::string op, int err) { |
7 std::string NetworkErrno::build_str (std::string op, int err) { |
8 std::stringstream ss; |
8 std::stringstream ss; |
9 |
9 |
10 ss << op << ": " << strerror(errno); |
10 ss << op << ": " << strerror(err); |
11 |
11 |
12 return ss.str(); |
12 return ss.str(); |
13 } |
13 } |
14 |
14 |
15 NetworkErrno::NetworkErrno (std::string op) : |
15 NetworkErrno::NetworkErrno (std::string op) : |