summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Naming/Client
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-08-27 17:40:28 +0000
committerSteve Huston <shuston@riverace.com>2004-08-27 17:40:28 +0000
commit61eace73a60808c43cb914ebb71e392b9a9c76ab (patch)
tree3892c5798cac4b63e0e33f7113787704887a87da /netsvcs/clients/Naming/Client
parente8361fb4a9f83aac29ff081df3c86d0b3530d574 (diff)
downloadATCD-61eace73a60808c43cb914ebb71e392b9a9c76ab.tar.gz
ChangeLogTag:Fri Aug 27 13:38:25 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'netsvcs/clients/Naming/Client')
-rw-r--r--netsvcs/clients/Naming/Client/Client_Test.cpp6
-rw-r--r--netsvcs/clients/Naming/Client/Makefile.am53
-rw-r--r--netsvcs/clients/Naming/Client/main.cpp24
3 files changed, 50 insertions, 33 deletions
diff --git a/netsvcs/clients/Naming/Client/Client_Test.cpp b/netsvcs/clients/Naming/Client/Client_Test.cpp
index ce3e2942219..0f87432d246 100644
--- a/netsvcs/clients/Naming/Client/Client_Test.cpp
+++ b/netsvcs/clients/Naming/Client/Client_Test.cpp
@@ -381,7 +381,7 @@ Client_Test::set_proc_local (void)
{
// Close down original name space
NAMING_CONTEXT ()->close ();
- this->name_options_->nameserver_host ("localhost");
+ this->name_options_->nameserver_host (ACE_TEXT ("localhost"));
this->name_options_->context (ACE_Naming_Context::PROC_LOCAL);
return NAMING_CONTEXT ()->open (ACE_Naming_Context::PROC_LOCAL);
}
@@ -391,7 +391,7 @@ Client_Test::set_node_local (void)
{
// Close down original name space
NAMING_CONTEXT ()->close ();
- this->name_options_->nameserver_host ("localhost");
+ this->name_options_->nameserver_host (ACE_TEXT ("localhost"));
this->name_options_->context (ACE_Naming_Context::NODE_LOCAL);
return NAMING_CONTEXT ()->open (ACE_Naming_Context::NODE_LOCAL);
}
@@ -404,7 +404,7 @@ Client_Test::set_host (const char *hostname, int port)
this->name_options_->context (ACE_Naming_Context::NET_LOCAL);
// Set Name Options
- this->name_options_->nameserver_host (hostname);
+ this->name_options_->nameserver_host (ACE_TEXT_CHAR_TO_TCHAR (hostname));
this->name_options_->nameserver_port (port);
return NAMING_CONTEXT ()->open (ACE_Naming_Context::NET_LOCAL);
diff --git a/netsvcs/clients/Naming/Client/Makefile.am b/netsvcs/clients/Naming/Client/Makefile.am
index 95879536177..443804114a1 100644
--- a/netsvcs/clients/Naming/Client/Makefile.am
+++ b/netsvcs/clients/Naming/Client/Makefile.am
@@ -1,31 +1,50 @@
-##----------------------------------------------------------------------------
-## $Id$
+## Process this file with automake to create Makefile.in
##
-## Makefile for the client programs that test the ACE network services
-##----------------------------------------------------------------------------
-
+## $Id$
##
-## Process this file with automake to create Makefile.in
+## This file was generated by MPC. Any changes made directly to
+## this file will be lost the next time it is generated.
##
+## MPC Command:
+## /acebuilds/ACE_wrappers-repository/bin/mwc.pl -include /acebuilds/MPC/config -include /acebuilds/MPC/templates -feature_file /acebuilds/ACE_wrappers-repository/local.features -noreldefs -type automake -hierarchy -make_coexistence -exclude build,Kokyu
+
+ACE_BUILDDIR = $(top_builddir)
+
+## Makefile.Netsvsc_Client_Test_Lib.am
+noinst_LTLIBRARIES = libClient_Test.la
+
+libClient_Test_la_CPPFLAGS = \
+ -I$(top_builddir) \
+ -I$(top_srcdir) \
+ -I$(ACE_BUILDDIR) \
+ -DACE_CLIENT_TEST_BUILD_DLL
-AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
+libClient_Test_la_SOURCES = \
+ Client_Test.cpp
-noinst_LIBRARIES = libClient_Test.a
+libClient_Test_la_LIBADD = \
+ $(top_builddir)/ace/libACE.la
-libClient_Test_a_SOURCES = Client_Test.cpp Client_Test.h
+noinst_HEADERS = \
+ Client_Test.h
-noinst_PROGRAMS = \
- main
+## Makefile.Netsvcs_Client_Test.am
+noinst_PROGRAMS = main
-main_SOURCES = main.cpp
-main_LDADD = libClient_Test.a \
- $(top_builddir)/ace/libACE.la
+main_CPPFLAGS = \
+ -I$(top_builddir) \
+ -I$(top_srcdir) \
+ -I$(ACE_BUILDDIR)
-noinst_DATA = svc.conf svc2.conf
+main_SOURCES = \
+ main.cpp \
+ Client_Test.h
-EXTRA_DIST = $(noinst_DATA)
+main_LDADD = \
+ $(top_builddir)/ace/libClient_Test.la $(top_builddir)/ace/libACE.la
## Clean up template repositories, etc.
clean-local:
-rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core
- -rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations
+ -rm -f gcctemp.c gcctemp so_locations
+ -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/netsvcs/clients/Naming/Client/main.cpp b/netsvcs/clients/Naming/Client/main.cpp
index 75456ba8cad..25a87893d27 100644
--- a/netsvcs/clients/Naming/Client/main.cpp
+++ b/netsvcs/clients/Naming/Client/main.cpp
@@ -12,7 +12,7 @@
ACE_RCSID(Client, main, "$Id$")
int
-main (int, char *argv[])
+ACE_TMAIN (int, ACE_TCHAR *argv[])
{
ACE_Service_Config daemon;
ACE_ARGV new_args;
@@ -20,13 +20,13 @@ main (int, char *argv[])
// Load the existing <argv> into our new one.
new_args.add (argv);
// Enable loading of static services.
- new_args.add ("-y");
+ new_args.add (ACE_TEXT ("-y"));
// Enable debugging within dynamically linked services.
- new_args.add ("-d");
+ new_args.add (ACE_TEXT ("-d"));
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("argc = %d\n"),
- ACE_TEXT (new_args.argc ())));
+ new_args.argc ()));
// Print the contents of the combined <ACE_ARGV>.
for (int i = 0; i < new_args.argc (); i++)
@@ -39,25 +39,23 @@ main (int, char *argv[])
new_args.argv ()) == -1)
{
if (errno != ENOENT)
- ACE_ERROR ((LM_ERROR,
- "%p\n%a",
- "open",
- 1));
+ ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("open")),
+ 1);
else // Use static binding.
{
ACE_ARGV args;
args.add (argv[0]);
- args.add ("-p10011"); // Port number.
+ args.add (ACE_TEXT ("-p10011")); // Port number.
ACE_Service_Object *so =
ACE_SVC_INVOKE (ACE_Naming_Context);
if (so->init (args.argc (),
args.argv ()) == -1)
- ACE_ERROR ((LM_ERROR,
- "%p\n%a",
- "ACE_Naming_Context",
- 1));
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("ACE_Naming_Context")),
+ 1);
so = ACE_SVC_INVOKE (Client_Test);