[Xcb] [PATCH 3/3] Use WSAStartup()/WSACleanup() on WIN32

Josh Triplett josh at joshtriplett.org
Thu Jan 5 19:38:51 PST 2012

On Thu, Jan 05, 2012 at 04:29:47PM -0600, Ryan Pavlik wrote:
> On Thu, Jan 5, 2012 at 3:28 PM, Josh Triplett <josh at joshtriplett.org> wrote:
> > On Thu, Jan 05, 2012 at 08:57:54PM +0000, Jon TURNEY wrote:
> > What happens if the application using XCB has already called WSAStartup,
> > and passes a lower version number than 2.2?  Will XCB's call to
> > WSAStartup cause Winsock to start assuming 2.2 semantics instead of
> > whatever older semantics the application requested?  Or will Winsock
> > just tell XCB to use the older version?  In the latter case, can XCB
> > live with that?
> I'm not sure, but 2.2 is available since a patch for Windows 95, so I'm
> pretty confident that it's a safe alternative.

I definitely don't care about the case where the system has an older
Winsock; I just wondered what would happen if the application using XCB
called WSAStartup first, with a lower version number.

> Jon, if you put these patches in some publicly-accessible repo I can go
> through and sign off on them easily.

If the versions posted here on the list look acceptable to you, you can
just reply to the patch with your own Signed-off-by line and whoever
merges the patch can incorporate it.

- Josh Triplett

More information about the Xcb mailing list