KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Internal Namespace Change (ntdoc)

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Nov 11, 2005 1:51 pm    Post subject: Internal Namespace Change (ntdoc) Reply with quote

Doc said:
Quote:

Why the namespace change and is there documentation on this new IP Class?


I changed the Internal namespace name, not the external one. The external name remains (and will always remain as) Kixforms.System. I needed to change the internal name because having "System" as part of my internal name was causing me some grief with some enhancements I have planned.

In terms of the Dns class ... they are documented in the CHM ... hopefully Jooel can provide more information and samples ...

-Shawn
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Nov 11, 2005 3:45 pm    Post subject: ipaddress class Reply with quote

oy.
the dns implementation in dotnet is kinda messed up...
to just get simple ipaddy, you need to go via lots of semiphases.

here is the code I used in testing when build those classes (about 2 months ago Razz)
I planned to add some examples to the docs but I'm not so familiar with the documentation system yet.

Code:
$s = createobject("kixforms.system") " " @serror ?
? "_ GET HOST NAME _" ?
$s.dns.getHostName " " @serror ?

? "_ GETHOSTBYNAME _" ?
$host = $s.dns.getHostByname("www.kixforms.org") " " @serror ?
$host.hostname  " " @serror ?
;$host.addresslist[0].toString " " @serror ?

? "_ GETHOSTBYADDRESS _" ?
$host = $s.dns.getHostByAddress("195.140.240.55") " " @serror ?
$host.hostname  " " @serror ?
;$host.addresslist[0].toString " " @serror ?

? "_ ipClass - PARSE _" ?
$ipClass = $s.ipaddress() @serror ?
$IPaddy = $ipClass.parse("192.168.111.1") @serror ?
$IPaddy = $ipClass.loopback @serror ?
$IPaddy.tostring "   " @serror ?

? "_ RESOLVE _" ?
$dns = $s.dns " " @serror ?
$resolvedEntry = $dns.resolve("www.kixforms.org") " " @serror ?
$resolvedEntry.hostname " " @serror ?
"   _ Aliases _ " ?
$aliases = $resolvedEntry.aliases " " @serror ?
vartypename($aliases) " " ubound($aliases) ?
vartypename($aliases[0]) " " $aliases[0] ?

"_" ?

for each $alias in $s.resolve("www.kixforms.org").aliases
 $alias ?
next

"   _ addylist _" ?
;$s.dns.resolve("www.kixtart.org").addresslist[0] ?
for each $addy in $s.dns.resolve("www.kixtart.org").addresslist
 $addy.tostring ?
next

get $

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Nov 11, 2005 3:52 pm    Post subject: Reply with quote

actually, looking at ipHostEntry.aliases I see that my example worked fine in shawns system.
_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group