X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_server.hxx;h=bbba37908001552182ce2667b024b02569524536;hp=ae30833d8be2cd2d310ff1e876b950bb819c8dbb;hb=a63e08b83794273da3840e0b8bf15bf0085fe3c4;hpb=1eed3f4c4e55d3e9f57a2dae5f71b76edb2bd4cf diff --git a/src/socket_server.hxx b/src/socket_server.hxx index ae30833..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 @@ -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(); };