diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-02-17 13:24:45 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-02-17 13:24:45 +0000 |
commit | 94f3a741ffc5ad06c8cac7b3b852c4b4e1d341a2 (patch) | |
tree | c44d9770aa3f1310191d6765ea2f98c585dcced6 /ACE/netsvcs | |
parent | b9a72cd22d91940773b7e916b7f17d206710ec3f (diff) | |
download | ATCD-94f3a741ffc5ad06c8cac7b3b852c4b4e1d341a2.tar.gz |
Diffstat (limited to 'ACE/netsvcs')
-rw-r--r-- | ACE/netsvcs/lib/Client_Logging_Handler.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ACE/netsvcs/lib/Client_Logging_Handler.cpp b/ACE/netsvcs/lib/Client_Logging_Handler.cpp index 601434b110f..55a98cbe3e9 100644 --- a/ACE/netsvcs/lib/Client_Logging_Handler.cpp +++ b/ACE/netsvcs/lib/Client_Logging_Handler.cpp @@ -477,11 +477,9 @@ private: // Local IP/port number to use for the connection to the server logging // daemon. -#if (ACE_NETSVCS_CLIENT_LOGGING_HANDLER_USES_STREAM_PIPES == 1) const ACE_TCHAR *logger_key_; // Communication endpoint where the client logging daemon will // listen for connections from clients. -#endif ACE_Client_Logging_Handler *handler_; // Pointer to the singleton handler that receives messages from @@ -496,14 +494,12 @@ ACE_Client_Logging_Acceptor::fini (void) if (this->handler_ != 0) this->handler_->close (0); -#if (ACE_NETSVCS_CLIENT_LOGGING_HANDLER_USES_STREAM_PIPES == 1) // Try to unlink the logger key so weird things don't happen if // we're using STREAM pipes. ACE_OS::unlink (this->logger_key_); // This memory was allocated by <ACE_OS::strdup>. ACE_OS::free ((void *) this->logger_key_); -#endif ACE_OS::free ((void *) this->server_host_); @@ -537,9 +533,7 @@ ACE_Client_Logging_Acceptor::info (ACE_TCHAR **strp, size_t length) const ACE_Client_Logging_Acceptor::ACE_Client_Logging_Acceptor (void) : server_host_ (ACE_OS::strdup (ACE_DEFAULT_SERVER_HOST)), server_port_ (ACE_DEFAULT_LOGGING_SERVER_PORT), -#if (ACE_NETSVCS_CLIENT_LOGGING_HANDLER_USES_STREAM_PIPES == 1) logger_key_ (ACE_OS::strdup (ACE_DEFAULT_LOGGER_KEY)), -#endif handler_ (0) { } @@ -557,7 +551,6 @@ ACE_Client_Logging_Acceptor::init (int argc, ACE_TCHAR *argv[]) // options. this->parse_args (argc, argv); -#if (ACE_NETSVCS_CLIENT_LOGGING_HANDLER_USES_STREAM_PIPES == 1) // Try to unlink the logger key so weird things don't happen if // we're using STREAM pipes. ACE_OS::unlink (this->logger_key_); @@ -568,14 +561,6 @@ ACE_Client_Logging_Acceptor::init (int argc, ACE_TCHAR *argv[]) ACE_TEXT ("%p\n"), this->logger_key_), -1); -#else - // Initialize the acceptor endpoint. - if (this->open (LOGGING_ADDR ()) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("open")), - -1); -#endif // Establish connection with the server. ACE_SOCK_Connector con; @@ -668,10 +653,8 @@ ACE_Client_Logging_Acceptor::parse_args (int argc, ACE_TCHAR *argv[]) this->server_host_ = ACE_OS::strdup (get_opt.opt_arg ()); break; case 'k': -#if (ACE_NETSVCS_CLIENT_LOGGING_HANDLER_USES_STREAM_PIPES == 1) ACE_OS::free ((void *) this->logger_key_); this->logger_key_ = ACE_OS::strdup (get_opt.opt_arg ()); -#endif break; case 'p': this->server_port_ = ACE_OS::atoi (get_opt.opt_arg ()); |