Re: tds_socketpair on windows
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4cYvvF+zs=u+GvrqFMuU=+F2YgF4cfK8nAXG+KdpidO4w@mail.gmail.com> |
Fixed 6 days ago https://gitorious.org/freetds/freetds/commit/9be5b736ba172382ec24dd8b525626b0747448de Probably I'll rewrite this code using events (on Windows), for the moment streams are also ok. Frediano Il 01 aprile 2012 10:59, Ludo Brands <[email protected]> ha scritto: > Hi, > > I'm trying to build a recent version of Freets on win32 and win64 but run > into problems with tds_socketpair. After adding a few new files to the > Visual Studio project (dbpivot.c and socketpair.c) it build fine on win64 > and win32. But when calling tdsdbopen the libraries return a SYBEMEM. After > some debugging found out that the listen call (socketpair.c:65) fails. The > error returned with WSAGetLastError is WSAEOPNOTSUPP which is normal since > listen on a SOCK_DGRAM socket is not needed/supported. > Don't know what the changes to mem.c in revision 1.223 are trying to solve > but the result fails both on win32 XP sp2 and win64 win7. Can I revert this > change to mem.c locally or has this change ramifications in other source > files? > > Thanks, Ludo >