* encoding work, and a class to implement such a server.
*/
-#include <string>
+#include "log.h"
+#include "exceptions.h"
+#include <libxml++/libxml++.h>
#include <boost/thread.hpp>
#include <boost/asio.hpp>
#include <boost/thread/condition.hpp>
#include <boost/optional.hpp>
-#include <libxml++/libxml++.h>
-#include "log.h"
-#include "exceptions.h"
+#include <string>
class Socket;
: _host_name ("")
, _threads (1)
{}
-
+
/** @param h Server host name or IP address in string form.
* @param t Number of threads to use on the server.
*/
{}
/* Default copy constructor is fine */
-
+
/** @return server's host name or IP address in string form */
std::string host_name () const {
return _host_name;
: thread (0)
, socket (0)
{}
-
+
boost::thread* thread;
boost::asio::ip::udp::socket* socket;
char buffer[64];
boost::asio::ip::udp::endpoint send_endpoint;
boost::asio::io_service io_service;
-
+
} _broadcast;
};