X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FServer.cc;h=8eb41acae0b6e04a6cc528feceedeabd5ec22bd2;hb=6aae6e526573187ece558842e928578e5aa4cc4c;hp=6ed4b3bb7823e6c39d7d2009f09671ab3f48a0a3;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Console/Server.cc b/senf/Utils/Console/Server.cc index 6ed4b3b..8eb41ac 100644 --- a/senf/Utils/Console/Server.cc +++ b/senf/Utils/Console/Server.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -36,14 +36,23 @@ #include #include #include +#include #include "LineEditor.hh" #include "ScopedDirectory.hh" #include "Sysdir.hh" +#include "SysInfo.hh" #include "ParsedCommand.hh" //#include "Server.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// +namespace { + senf::console::SysInfo::Proxy addSysInfo ( + "SENF: The Simple and Extensible Network Framework\n" + " © 2006-2010 Fraunhofer Institute for Open Communication Systems, Network Research\n" + " Contact: senf-dev@lists.berlios.de\n" + " Version: " SENF_LIB_VERSION " Revision number: " SENF_REVISION "\n", 0); +} /////////////////////////////////////////////////////////////////////////// // senf::console::detail::NonBlockingSocketSink @@ -71,7 +80,7 @@ senf::console::Server::start(senf::INet4SocketAddress const & address) { senf::TCPv4ServerSocketHandle handle (address); Server & server (senf::console::Server::start(handle)); - SENF_LOG((Server::SENFLogArea)(log::NOTICE)( + SENF_LOG((Server::SENFLogArea)(log::NOTICE)( "Console server started at " << address )); return server; } @@ -81,7 +90,7 @@ senf::console::Server::start(senf::INet6SocketAddress const & address) { senf::TCPv6ServerSocketHandle handle (address); Server & server (senf::console::Server::start(handle)); - SENF_LOG((Server::SENFLogArea)(log::NOTICE)( + SENF_LOG((Server::SENFLogArea)(log::NOTICE)( "Console server started at " << address )); return server; } @@ -94,7 +103,7 @@ prefix_ senf::console::Server & senf::console::Server::start(ServerHandle handle } prefix_ senf::console::Server::Server(ServerHandle handle) - : handle_ (handle), + : handle_ (handle), event_ ("senf::console::Server", senf::membind(&Server::newClient, this), handle_, scheduler::FdEvent::EV_READ), root_ (senf::console::root().thisptr()), mode_ (Automatic), @@ -143,7 +152,7 @@ senf::console::detail::DumbClientReader::clientData(senf::ReadHelper