> Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl
1)

Solaris 8.

> Have you read:
Yes. However, unless I'm confused, that is a bit different in that it is an
example of using APR to work with the socket established by Apache to
communicate with the client. I need to establish my own UDP conversation
with a "third-party" service from where I'll retrieve data which I'll use to
compose my response to the client. If I can use APR to do that, great, but I
couldn't find docs/samples/tests that create/open/close APR sockets.

Thanks,
Michael Maciag

-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 4:41 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [mp2] UDP communications in perl module running under
mod_perl2


[EMAIL PROTECTED] wrote:
> Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.8.0

Which Unix? I've heard about the troubles with sockets on AIX (w/ mod_perl
1)

> Should I have any  difficulty running a simple socket UDP Perl module
> under the above configuration? Run directly from Perl, I'm able to
> send/recv from an external server. However, run from the apache server,
> the recv fails. (I've tried the Perl Socket module and the recv doesn't
> complete. If I use IO:Socket, the recv returns with a 'connection
> refused'.)
>
> I see the references to APR socket routines in mp2. Do I need to use
those?

Yup. Have you read:
http://perl.apache.org/docs/2.0/user/handlers/protocols.html
In particular:
http://perl.apache.org/docs/2.0/user/handlers/protocols.html#Socket_based_Pr
otocol_Module

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html




-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to