#include <sys/types.h>
#include <string>
+#include <set>
#include "server.hxx"
#include "socket_handler.hxx"
private:
fd_set connection_set;
std::string unix_path;
+ std::set<int> sockets_set;
void start_listening();
~socket_server();
bool fill_buffer(long long usec_timeout=-1,long long* usec_timeout_remaining=NULL);
+ std::set<int> get_sockets_set()
+ { return sockets_set; };
};
/** @brief Socket based connection
private:
socket_server_connection(int _sock, socket_type_value _stype, int _timeout)
- : server_connection(_timeout), socket_handler(_sock,_stype)
+ : socket_handler(_sock,_stype), server_connection(_timeout)
{ }
~socket_server_connection();