X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_server.hxx;fp=src%2Fsocket_server.hxx;h=605613682d18a8ab893ff3782106539c8ec5e1d0;hp=5dfea1f0a57f1a0aa1e2763135e427f83a1cb652;hb=aa499d2034964a4c125794b7e8ea768cb7471411;hpb=04e6b2712bf0fdfdb6a74cf6d26f02e6a8d37ae2 diff --git a/src/socket_server.hxx b/src/socket_server.hxx index 5dfea1f..6056136 100644 --- a/src/socket_server.hxx +++ b/src/socket_server.hxx @@ -53,6 +53,7 @@ class socket_server : public server { return socket_type; } void fill_buffer(long long usec_timeout=-1); + void fill_connection_buffers(); }; /** @@ -63,6 +64,8 @@ class socket_connection : public connection friend class socket_server; private: + static const int recv_buffer_size=2048; + int sock; socket_connection(int _sock, int _timeout); @@ -70,9 +73,7 @@ class socket_connection : public connection public: void close(); - - void fill_buffer(void); - + void fill_buffer(fd_set &cur_fdset); void write(const std::string& data); };