X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_server.hxx;h=bbba37908001552182ce2667b024b02569524536;hp=f3dd1c599e334ce49601f98b43fc0350d92e9958;hb=HEAD;hpb=19facd8558fe2e32ce843860b40631ebe03ff3cf diff --git a/src/socket_server.hxx b/src/socket_server.hxx index f3dd1c5..bbba379 100644 --- a/src/socket_server.hxx +++ b/src/socket_server.hxx @@ -24,6 +24,7 @@ on this file might be covered by the GNU General Public License. #include #include +#include #include "server.hxx" #include "socket_handler.hxx" @@ -48,6 +49,7 @@ class socket_server : public socket_handler, public server private: fd_set connection_set; std::string unix_path; + std::set sockets_set; void start_listening(); @@ -67,6 +69,8 @@ class socket_server : public socket_handler, public server ~socket_server(); bool fill_buffer(long long usec_timeout=-1,long long* usec_timeout_remaining=NULL); + std::set get_sockets_set() + { return sockets_set; }; }; /** @brief Socket based connection @@ -79,7 +83,7 @@ class socket_server_connection : public socket_handler, public server_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(); @@ -91,8 +95,7 @@ class socket_server_connection : public socket_handler, public server_connection { socket_write(data); } public: - bool fill_buffer(long long usec_timeout=-1,long long* usec_timeout_remaining=NULL) - { return socket_handler::fill_buffer(buffer,usec_timeout,usec_timeout_remaining); } + bool fill_buffer(long long usec_timeout=-1,long long* usec_timeout_remaining=NULL); virtual void close(); };