From: Gerd v. Egidy Date: Tue, 31 Oct 2006 14:45:36 +0000 (+0000) Subject: libt2n: (gerd) improve exports X-Git-Tag: v0.2~128 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=2c49df2a77df8ded0ee565cccf5ed784f46d0f37;hp=539b09c0c1819f9394e5a0ae8b3df3687715fa7c libt2n: (gerd) improve exports --- diff --git a/libt2n.pc.in b/libt2n.pc.in index 2de7e48..a9ff269 100644 --- a/libt2n.pc.in +++ b/libt2n.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: libt2n Description: talk2neighbor - C++ IPC library Version: @VERSION@ -Libs: -L${libdir} -lt2n -Cflags: -I${includedir} +Libs: -L${libdir} -lt2n @BOOST_LDFLAGS@ @BOOST_SERIALIZATION_LIB@ +Cflags: -I${includedir} @BOOST_CPPFLAGS@ diff --git a/libt2n.spec.in b/libt2n.spec.in index 3d5c8dc..69e77bc 100644 --- a/libt2n.spec.in +++ b/libt2n.spec.in @@ -8,6 +8,7 @@ Vendor: Intra2net AG Source: %{name}-%{version}.tar.gz Buildroot: /tmp/%{name}-%{version}-root Prefix: /usr +Requires: boost >= 1.33 BuildPrereq: libtool %description @@ -17,6 +18,7 @@ C++ IPC library Summary: talk2neighbor - C++ IPC library Group: Intranator/Development Requires: libt2n = %{version} libgettext +BuildPrereq: boost-devel %description devel C++ IPC library devel files diff --git a/src/command_client.hxx b/src/command_client.hxx index 6ec6a1d..2ef15db 100644 --- a/src/command_client.hxx +++ b/src/command_client.hxx @@ -28,6 +28,10 @@ namespace libt2n /// a client sending out commands to a server class command_client { + protected: + static const long long command_timeout_usec_default=90000000; + static const long long hello_timeout_usec_default=30000000; + private: client_connection &c; @@ -39,7 +43,9 @@ class command_client bool check_hello(const std::string& hellostr); public: - command_client(client_connection& _c, long long _command_timeout_usec=90000000, long long _hello_timeout_usec=30000000); + command_client(client_connection& _c, + long long _command_timeout_usec=command_timeout_usec_default, + long long _hello_timeout_usec=hello_timeout_usec_default); void send_command(command* cmd, result_container &res); };