- Timestamp:
- 03/21/05 08:55:37 (8 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- d4f294a
- Parents:
- c6e008c
- File:
-
- 1 edited
-
modules/NSClientListener/NSClientSocket.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/NSClientListener/NSClientSocket.cpp
r1eef1ee r81e29d8 85 85 std::string message, perf; 86 86 NSCAPI::nagiosReturn ret = NSCModuleHelper::InjectSplitAndCommand(cmd.first.c_str(), cmd.second, '&', message, perf); 87 // @todo fix some way to interpret return code 88 return message; 87 return NSCHelper::translateReturn(ret) + "&" + message + "|" + perf; 89 88 } 90 89 … … 98 97 std::string response = parseRequest(buff); 99 98 NSC_DEBUG_MSG("Outgoing data: " + response); 100 send(client, response.c_str(), response.length(), 0);99 send(client, response.c_str(), static_cast<int>(response.length()), 0); 101 100 } else { 102 101 std::string str = "ERROR: Unknown socket error"; 103 send(client,str.c_str(),st r.length(),0);102 send(client,str.c_str(),static_cast<int>(str.length()),0); 104 103 } 105 104 delete [] buff;
Note: See TracChangeset
for help on using the changeset viewer.








