Changeset 6533c1a in nscp for modules/SyslogClient


Ignore:
Timestamp:
04/17/12 17:56:20 (13 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
308ae18
Parents:
682ccd2
Message:
  • Fixed so keys with parents are advanced (in favour of the parent)
  • Fixed so NSClientServer uses the correct default path for its parents (ie. /settings/default)
Location:
modules/SyslogClient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/SyslogClient/SyslogClient.cpp

    r8d89d7a r6533c1a  
    347347    boost::asio::io_service io_service; 
    348348    ip::udp::resolver resolver(io_service); 
    349     ip::udp::resolver::query query(ip::udp::v4(), con.host, con.port); 
     349    ip::udp::resolver::query query(ip::udp::v4(), con.host, strEx::s::itos(con.port)); 
    350350    ip::udp::endpoint receiver_endpoint = *resolver.resolve(query); 
    351351 
  • modules/SyslogClient/SyslogClient.h

    r84cdb9b r6533c1a  
    103103    std::string message_syntax; 
    104104    std::string host; 
    105     std::string port; 
     105    int port; 
    106106    std::string ok_severity, warn_severity, crit_severity, unknown_severity; 
    107107 
     
    125125      std::wstringstream ss; 
    126126      ss << _T("host: ") << utf8::cvt<std::wstring>(host); 
    127       ss << _T(", port: ") << utf8::cvt<std::wstring>(port); 
     127      ss << _T(", port: ") << port; 
    128128      ss << _T(", severity: ") << utf8::cvt<std::wstring>(severity); 
    129129      ss << _T(", facility: ") << utf8::cvt<std::wstring>(facility); 
Note: See TracChangeset for help on using the changeset viewer.