libt2n: (gerd) improve exports
authorGerd v. Egidy <gerd.von.egidy@intra2net.com>
Tue, 31 Oct 2006 14:45:36 +0000 (14:45 +0000)
committerGerd v. Egidy <gerd.von.egidy@intra2net.com>
Tue, 31 Oct 2006 14:45:36 +0000 (14:45 +0000)
libt2n.pc.in
libt2n.spec.in
src/command_client.hxx

index 2de7e48..a9ff269 100644 (file)
@@ -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@
index 3d5c8dc..69e77bc 100644 (file)
@@ -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
index 6ec6a1d..2ef15db 100644 (file)
@@ -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);
 };