From 68cecfc7381518d7562b3cd56f92cf8314776813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Sat, 29 Dec 2007 05:53:06 +0000 Subject: [PATCH] Add thread count in server SLS mark is version in testing and write build date --- sls/trunk/src/server.cc | 2 +- sls/trunk/src/server.hh | 1 + sls/trunk/src/sls.hh | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sls/trunk/src/server.cc b/sls/trunk/src/server.cc index 08cddb9..1196175 100644 --- a/sls/trunk/src/server.cc +++ b/sls/trunk/src/server.cc @@ -22,7 +22,7 @@ /*! * Constructor */ -Server::Server() : socket_(0) {} +Server::Server() : socket_(0), thread_count_(0) {} /*! * Start server. Creating socket diff --git a/sls/trunk/src/server.hh b/sls/trunk/src/server.hh index f93155c..95afbf3 100644 --- a/sls/trunk/src/server.hh +++ b/sls/trunk/src/server.hh @@ -40,6 +40,7 @@ private: int socket_; size_t max_thread_; + size_t thread_count_; }; #endif diff --git a/sls/trunk/src/sls.hh b/sls/trunk/src/sls.hh index 92d50c0..a9cb217 100644 --- a/sls/trunk/src/sls.hh +++ b/sls/trunk/src/sls.hh @@ -50,7 +50,9 @@ enum { // Gonstant // ----------------------------------------------------------------------------- -static const string VERSION = "1.0"; + +static const string VERSION = (string) "Testing.\nBuild at " + __DATE__ + " " + __TIME__ + "."; +//static const string VERSION = "1.0"; static const int MAX_LINE_SIZE = 512; #endif -- GitLab