summaryrefslogtreecommitdiff
path: root/netsvcs/lib
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-12 19:01:05 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-12 19:01:05 +0000
commit238389b7285c989146e2dcc396869fe5d266f4a7 (patch)
treebb5ec9a1c265851977d93513b6a4757630a56792 /netsvcs/lib
parent97ca30912aed8eecc91d8edf9b7db5c2e0ef4148 (diff)
downloadATCD-238389b7285c989146e2dcc396869fe5d266f4a7.tar.gz
ChangeLogTag:Fri May 12 11:25:10 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'netsvcs/lib')
-rw-r--r--netsvcs/lib/Name_Handler.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/netsvcs/lib/Name_Handler.cpp b/netsvcs/lib/Name_Handler.cpp
index 1df0e2b82e3..e3a35fdd3e5 100644
--- a/netsvcs/lib/Name_Handler.cpp
+++ b/netsvcs/lib/Name_Handler.cpp
@@ -418,10 +418,11 @@ ACE_Name_Handler::resolve (void)
char *atype;
if (NAMING_CONTEXT::instance ()->resolve (a_name, avalue, atype) == 0)
{
+ ACE_Auto_Array_Ptr<ACE_USHORT16> avalue_urep (avalue.ushort_rep ());
ACE_Name_Request nrq (ACE_Name_Request::RESOLVE,
0,
0,
- avalue.fast_rep (),
+ avalue_urep.get (),
avalue.length () * sizeof (ACE_USHORT16),
atype, ACE_OS::strlen (atype));
delete[] atype;
@@ -451,8 +452,9 @@ ACE_Name_Request
ACE_Name_Handler::name_request (ACE_WString *one_name)
{
ACE_TRACE ("ACE_Name_Handler::name_request");
+ ACE_Auto_Array_Ptr<ACE_USHORT16> one_name_urep (one_name->ushort_rep ());
return ACE_Name_Request (ACE_Name_Request::LIST_NAMES,
- one_name->fast_rep (),
+ one_name_urep.get (),
one_name->length () * sizeof (ACE_USHORT16),
0, 0,
0, 0);
@@ -462,9 +464,10 @@ ACE_Name_Request
ACE_Name_Handler::value_request (ACE_WString *one_value)
{
ACE_TRACE ("ACE_Name_Handler::value_request");
+ ACE_Auto_Array_Ptr<ACE_USHORT16> one_value_urep (one_value->ushort_rep ());
return ACE_Name_Request (ACE_Name_Request::LIST_VALUES,
0, 0,
- one_value->fast_rep (),
+ one_value_urep.get (),
one_value->length () * sizeof (ACE_USHORT16),
0, 0);
}
@@ -581,10 +584,14 @@ ACE_Name_Handler::lists_entries (void)
set_iterator.next (one_entry) !=0;
set_iterator.advance())
{
- ACE_Name_Request mynrq (this->name_request_.msg_type (),
- one_entry->name_.fast_rep (),
+ ACE_Auto_Array_Ptr<ACE_USHORT16>
+ name_urep (one_entry->name_.ushort_rep ());
+ ACE_Auto_Array_Ptr<ACE_USHORT16>
+ value_urep (one_entry->value_.ushort_rep ());
+ ACE_Name_Request mynrq (this->name_request_.msg_type (),
+ name_urep.get (),
one_entry->name_.length () * sizeof (ACE_USHORT16),
- one_entry->value_.fast_rep (),
+ value_urep.get (),
one_entry->value_.length () * sizeof (ACE_USHORT16),
one_entry->type_,
ACE_OS::strlen (one_entry->type_));