From 76bc9968ff0ec7d044042f9214fa59efb3146685 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 17 Jul 2013 14:10:44 -0400 Subject: New simpler command interface via loopback UDP protected by a crypto token. --- node/Utils.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'node/Utils.hpp') diff --git a/node/Utils.hpp b/node/Utils.hpp index e6bef5e5..b1917b27 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -34,6 +34,7 @@ #include #include #include + #include #include #include @@ -391,6 +392,18 @@ public: */ static std::string trim(const std::string &s); + /** + * Like sprintf, but appends to std::string + * + * @param s String to append to + * @param fmt Printf format string + * @param ... Format arguments + * @throws std::bad_alloc Memory allocation failure + * @throws std::length_error Format + args exceeds internal buffer maximum + */ + static void stdsprintf(std::string &s,const char *fmt,...) + throw(std::bad_alloc,std::length_error); + /** * Count the number of bits set in an integer * -- cgit v1.2.3