in reply to perl networking problem,no threads used

You don't say what your platform is. I must say, much of the code in Lincoln Stein's book "Network Programming with Perl" has trouble running well on Windows, while I'm sure it's fine on Linux/*BSD.

Likewise, POE, as suggested by another user, will likely pose problems on Windows. At least, many of the tests, when installing, simply appear to hang. Use with caution.

  • Comment on Re: perl networking problem,no threads used

Replies are listed 'Best First'.
Re^2: perl networking problem,no threads used
by bingos (Vicar) on Jan 11, 2007 at 17:50 UTC

    POE works absolutely fine on MSWin32, especially for sockets.

    For ease of installation I provide PAR::Dist installable PAR files of the latest POE at my poco-irc webpage.

      Then, can you explain the hangs when running the tests (from the installation distribution on CPAN) on Win32?

      It's not just for me, and I've tried it on several Perl ports, but Corion has told me the same thing in the Chatterbox.

        Hey, while we're all explaining, can you tell me why Corion and/or you haven't submitted a bug report to POE's request tracker queue? It's almost as if nobody actually cares whether bugs get fixed. :(

        Anyway, POE's tests check a wide variety of features, including some things that are supported marginally in MSWin32 land. For all I know, the fork() tests are hanging but the networking tests pass fine. A detailed bug report sure would help, if that's not too much trouble.

        Thanks!

Re^2: perl networking problem,no threads used
by spx2 (Deacon) on Jan 11, 2007 at 11:49 UTC
    I am on windows
      I am on windows
      Aha. That's the root of your problem.

      Unfortunately I still have too little experience in this field to know exactly just what works and what doesn't work. I'm working on it, on and off, I'm still learning this stuff and Windows is a platform I use a lot.