libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Remove PlibC from autotools files


From: LRN
Subject: Re: [libmicrohttpd] Remove PlibC from autotools files
Date: Mon, 12 Aug 2013 15:24:43 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Thunderbird/26.0a1

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

On 10.08.2013 13:50, Christian Grothoff wrote:
> On 08/10/13 00:24, LRN wrote:
>>> Isn't it simple to use local socket instead of pipe? This will work on all 
>>> platforms.
>>>
>>> I don't think than requiring Vista+ is good solution for MHD.
>>>
>> That is also a good idea - using threads to simultaneously select on
>> sockets and a pipe will require a socket for wakeup anyway, so just
>> using a socket instead of a pipe in the first place, and forgoing the
>> pipe entirely, seems the logical choice.
> 
> I had actually been thinking of using that kind of construction for 
> handling "HTTP UPGRADE" and SSL, essentially returning a local socket 
> (on W32) for the (encrypted) communication with the client.  Here, a 
> pipe would not do as the communication after UPGRADE would be bidirectional.
> 
> So there's another reason to add code to create a local socket to MHD, 
> which means I like this suggestion even better.  If in the end all we 
> have to do is
> 
> #if WINDOWS
> localsocket (bla);
> else
> pipe (bla);
> #endif
> 
> or in another location (for UPGRADE)
> 
> #if WINDOWS
> localsocket (bla);
> else
> socketpair (args, bla);
> #endif
> 
> and in return for those "minor" #ifdefs we get to eliminate plibc and 
> the select-mess, I think I'll be quite happy.

I've added a socketpair() implementation to plibc, updated plibc.h* in
MHD, and made MHD use SOCKETPAIR() instead of PIPE() on W32.

* Also added EACCESS.

ndurner, how's mingw.org plibc testing going on? We will need to release
a new plibc in time for the next MHD release.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSCMX5AAoJEOs4Jb6SI2CwGmIIAN+CZr5DJacOixyJv6yNPXpd
ixHGC2UaQiZw1mK3G2k3iEKAybeOoWZXzWlK4wmrkUavyLLmxyhQQm0jWGDD79sG
NNDMBriBeoKW3hPO2bWukLCGUh9ZVUFQjnbk+/24KSPy+nTwGFTENsJwKNjBvCWZ
jGCWTG5WEw5tkkYvw/bmpz3OYBt2s7qiZr4E/gdKhHjDNPOCxjKx6s0qCe17LmJF
f7IKmdQ1obzJFlo3TE+2/HmnB8inszzLbahjeoTtTaeneBc9YuEgLKEiRMVQ4eJY
ScXX6yiAXT2/jCUxeVVRq65MgYGzaTpYOTSzJzkERgl6sKnrXXzW1i6tDbTijsI=
=7Jk9
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]