diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-07 08:03:55 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-07 08:03:55 +0000 |
commit | 8121220b99826e3ba3f230e7725060de788c00a9 (patch) | |
tree | bbf322a3bd9db404423f5ae4f5dc695a4a53fa23 /ace/Service_Manager.cpp | |
parent | 1365a33aee7b1bc80dc0c907e5f8b9aea38b493b (diff) | |
download | ATCD-8121220b99826e3ba3f230e7725060de788c00a9.tar.gz |
ChangeLogTag:Sat Oct 7 000:50:02 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/Service_Manager.cpp')
-rw-r--r-- | ace/Service_Manager.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ace/Service_Manager.cpp b/ace/Service_Manager.cpp index b9b93680a61..e496ca0a7e9 100644 --- a/ace/Service_Manager.cpp +++ b/ace/Service_Manager.cpp @@ -68,10 +68,10 @@ ACE_Service_Manager::info (ACE_TCHAR **strp, size_t length) const return -1; ACE_OS::sprintf (buf, - ACE_TEXT ("%d/%s %s"), + ACE_LIB_TEXT ("%d/%s %s"), sa.get_port_number (), - ACE_TEXT ("tcp"), - ACE_TEXT ("# lists all services in the daemon\n")); + ACE_LIB_TEXT ("tcp"), + ACE_LIB_TEXT ("# lists all services in the daemon\n")); if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0) return -1; else @@ -84,7 +84,7 @@ ACE_Service_Manager::init (int argc, ACE_TCHAR *argv[]) { ACE_TRACE ("ACE_Service_Manager::init"); ACE_INET_Addr local_addr (ACE_Service_Manager::DEFAULT_PORT_); - ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("dp:s:"), 0); // Start at argv[0] + ACE_Get_Opt getopt (argc, argv, ACE_LIB_TEXT ("dp:s:"), 0); // Start at argv[0] for (int c; (c = getopt ()) != -1; ) switch (c) @@ -105,13 +105,13 @@ ACE_Service_Manager::init (int argc, ACE_TCHAR *argv[]) if (this->get_handle () == ACE_INVALID_HANDLE && this->open (local_addr) == -1) ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("open")), -1); + ACE_LIB_TEXT ("%p\n"), + ACE_LIB_TEXT ("open")), -1); else if (ACE_Reactor::instance ()->register_handler (this, ACE_Event_Handler::ACCEPT_MASK) == -1) ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("registering service with ACE_Reactor\n")), + ACE_LIB_TEXT ("registering service with ACE_Reactor\n")), -1); return 0; } @@ -180,10 +180,10 @@ ACE_Service_Manager::list_services (void) if (this->debug_) ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("len = %d, info = %s%s"), + ACE_LIB_TEXT ("len = %d, info = %s%s"), len, buf, - buf[len - 1] == '\n' ? ACE_TEXT ("") : ACE_TEXT ("\n"))); + buf[len - 1] == '\n' ? ACE_LIB_TEXT ("") : ACE_LIB_TEXT ("\n"))); if (len > 0) { @@ -192,8 +192,8 @@ ACE_Service_Manager::list_services (void) if (n != len || (n == -1 && errno != EPIPE)) ACE_ERROR ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("send_n"))); + ACE_LIB_TEXT ("%p\n"), + ACE_LIB_TEXT ("send_n"))); } } @@ -250,14 +250,14 @@ ACE_Service_Manager::handle_input (ACE_HANDLE) if (this->debug_) { ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("client_stream fd = %d\n"), + ACE_LIB_TEXT ("client_stream fd = %d\n"), this->client_stream_.get_handle ())); ACE_INET_Addr sa; if (this->client_stream_.get_remote_addr (sa) == -1) return -1; ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("accepted from host %s at port %d\n"), + ACE_LIB_TEXT ("accepted from host %s at port %d\n"), sa.get_host_name (), sa.get_port_number ())); } @@ -280,8 +280,8 @@ ACE_Service_Manager::handle_input (ACE_HANDLE) case -1: if (this->debug_) ACE_DEBUG ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("recv"))); + ACE_LIB_TEXT ("%p\n"), + ACE_LIB_TEXT ("recv"))); break; case 0: return 0; @@ -318,7 +318,7 @@ ACE_Service_Manager::handle_input (ACE_HANDLE) if (this->client_stream_.close () == -1 && this->debug_) ACE_DEBUG ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("close"))); + ACE_LIB_TEXT ("%p\n"), + ACE_LIB_TEXT ("close"))); return 0; } |