Changeset 81e29d8 in nscp for modules


Ignore:
Timestamp:
03/21/05 08:55:37 (8 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
d4f294a
Parents:
c6e008c
Message:

Fixed bug in INject (now things should work, but far from stable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/NSClientListener/NSClientSocket.cpp

    r1eef1ee r81e29d8  
    8585  std::string message, perf; 
    8686  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; 
    8988} 
    9089 
     
    9897    std::string response = parseRequest(buff);   
    9998    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); 
    101100  } else { 
    102101    std::string str = "ERROR: Unknown socket error"; 
    103     send(client,str.c_str(),str.length(),0); 
     102    send(client,str.c_str(),static_cast<int>(str.length()),0); 
    104103  } 
    105104  delete [] buff; 
Note: See TracChangeset for help on using the changeset viewer.