----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 6:34 PM
Subject: Jenda help!!! ( or anyone else too... )
>
>
> I am using Lanman to enumerate sessions on Windows Terminal Servers.
Everything
> seems to work just fine except for two things. The client address and the
client
> display return garbage characters.
>
> I don't care about the client display, so I ignored it. The client
address on
> the other hand, I care a lot about.
>
> I tried unpacking it as 'join(".",unpack("C4", $addr))' but it yielded
2.0.0.0
> or 0.0.0.0 for every ip address.
>
> Is this a flaw in Lanman or a packed format I don't understand. the lanman
docs
> are mute on the subject.
>
> I am using Win2K pro with Activestate build 620 to pull WTS info from NT4
SP6a
> servers. All other info comes out correctly.
>
Just a guess
join(".", (unpack("C4", $addr)))
or try the two step version
@addrbytes = unpack("C4", $addr);
$realaddr = join (".", @addrbytes);
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin