[wx 2.6.3, WinXP, VC7.1] winsock vs winsock2.
Broer, Dirk
Dirk.Broer at symbol.com
Mon Aug 14 06:21:09 PDT 2006
Sorry for the long delay in response. I was on vacation.
I found the exact same thing, 4 #includes of winsock.h but in addition
you have to watch for #include <windows.h>, which I believe also
#includes winsock.h.
I also noticed that one of the #includes is under WIN CE section. And
of course, WIN CE doesn't support winsock2 (at least it didn't the last
time I checked).
For that reason, I recompile the ACE library with winsock2 turned off.
This solved my immediate problem (compilation) and I haven't had a
chance to test. I believe ACE uses select under the covers when
winsock2 is turned off. (I hope).
If I run into trouble, I will revisit.
If you think there is a real need, I will be willing to make changes and
I'm more than happy to contribute the work back.
Dirk
p.s. This is the second time I've used wxWidgets (formally wxWindows)
and once again I'm impressed by the project as a whole. The first time
was back in 1997... so it has been a while.
Thanks all for a wonderful tool!
-----Original Message-----
From: Vadim Zeitlin [mailto:vadim at wxwindows.org]
Sent: Friday, August 04, 2006 5:23 PM
To: wx-users at lists.wxwidgets.org
Subject: Re: [wx 2.6.3, WinXP, VC7.1] winsock vs winsock2.
On Fri, 4 Aug 2006 15:12:14 -0400 "Broer, Dirk" <Dirk.Broer at symbol.com>
wrote:
BD> Now, I can force ACE to use winsock (massive recompile etc.) or I
think
BD> I would like to force wxWidgets to using winsock2.
This shouldn't be difficult but it's not supported out of the box.
Basically, what you need to do is to extract all inclusions of winsock.h
(just 4 of them in fact) in some wx/msw/wrapwsck.h which then would
include
either winsock.h or winsock2.h depending on some wxUSE_WINSOCK2 setting.
If you decide to do this, please consider submitting a patch as this
would
(a) ensure that this code is maintained and (b) could be useful to other
people.
Good luck!
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
________________________________________________________________________
This email has been scanned for computer viruses.
________________________________________________________________________
This email has been scanned for computer viruses.
More information about the wx-users
mailing list