[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] MacPerl and IO::Socket::peeraddr()



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm new to the list, although not particularly to MacPerl.  

I have a problem with one of the examples from the documentation, in
the perlipc.pod file.  In the section on using IO::Socket, there is an
example of creating a server using ->new() and then ->accept() and
then getting a client socket back.  However, the call

$client->peeraddr;

fails with an error that the field is empty.  No matter what I try, I
cannot get data on the address of the client who has accessed my
server.  Has anyone encountered this before?  How can I locate the
address of the client who is hitting my server?  I'd like to keep it
OO using IO::Socket if I can.  


- --Paul

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBNwqJ5G9ORSfn1gnaEQJJiACaAuMakzjsO2GgpBebDsoIQaS+S3EAoMdv
AxNT1LS1RyvjgpS2ltIWHUpU
=iq8l
-----END PGP SIGNATURE-----

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org