[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
|
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
1340.0. "Can I convert strings to FullNames?" by QUIVER::CIARFELLA (Ten miles behind me;10,000 to go) Wed Aug 14 1991 18:03
In my AM I have a character string variable which gives the node
name of a device, for example, "CHUNK", and this node is registered
in the DNS database.
Is there any way that I can get the full DNS name of this node given
only the string "CHUNK", ie., get the full registered name as a
FullName datatype, ie.,
I have "CHUNK", type = character string
I want "DEGABA_NS:CHUNK", type = FullName
Is this possible?
Paul C
T.R | Title | User | Personal Name | Date | Lines |
---|
1340.1 | here's one way | TOOK::HAO | | Thu Aug 15 1991 10:45 | 13 |
| MCC provides common routines for some of the DNS services. These are
documented under "mcc_dns_xxx". The only way that comes to mind on
how to do this (which may not be the simplest way) is to convert
"chunk" into the internal representation, and then convert the
internal representation back into a fullname string. This will give
you what you're looking for.
The routines are:
mcc_dns_opaque_fullname(): convert from string to internal
mcc_dns_fullname_string(): convert from internal to string
Christine
|