On Wed, Aug 18, 2004 at 09:27:57PM -0700, Stas Bekman wrote:
> Glenn Strauss wrote:
> >The Socket.Handle property is what I think is needed so that
> >APR::OS::sock_get() can be made to work on Windows, too.
> >mpxs_APR__OS_sock_get() will need to special-case Windows platforms
> >and pull the Handle property.  I hope that works.  Any Windows
> >programmers out there?
> 
> and I suppose IntPtr is an integer pointer?
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemintptrclasstopic.asp
> but it can't be really casted with (int) as it can be longer than 
> sizeof(int).

Theoretically, yes.  But we're talking about file descriptors in this
case, and that's a lot of open files.  Does any operating system out
there support 2 GB open file descriptors?

Casting to int shouldn't be a problem in current practice, though I'm
not a Windows developer, so take that with some sea salt (large grains;
great for Margaritas).


> and if it was the case, why didn't apr provid such a call?

Any APR developers listening?

APR hasn't reached version 1.0 yet (though it is frozen for its
upcoming release); it has come a long way and is constantly improving.

> So do you think it's easier to just get this sock_get thing crossplatform 
> and then just use perl modules to manipulate the socket object? Or is it 
> better to expose apr_poll(set)?_.* interface? I prefer the later, as we 
> won't need to deal with crossplatform issues, leaving those to the letter 
> P in APR.

Sure, give me ever-evolving (for the better!) APIs that hide
low level primitives, but please also always give me access to
the low level primitives so that I can get the job done when
the higher level APIs do not meet my needs/map to my paradigm.
TIMTOWTDI. :)

Cheers,
Glenn

-- 
Report problems: 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