OSDN Git Service

Add emulation of non-blocking sockets to the win32 socket/signal layer,
authorMagnus Hagander <magnus@hagander.net>
Tue, 16 Feb 2010 19:26:02 +0000 (19:26 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 16 Feb 2010 19:26:02 +0000 (19:26 +0000)
commit215cbc90f8db3fc8a70af5572b156f49216c2f70
tree23cae32cf9e7b6d38bc55e876f2ba2be115cf5c9
parent492eaefb90b9e60b608a1a4b2e3e68ce7c6c7c69
Add emulation of non-blocking sockets to the win32 socket/signal layer,
and use this in pq_getbyte_if_available.

It's only a limited implementation which swithes the whole emulation layer
no non-blocking mode, but that's enough as long as non-blocking is only
used during a short period of time, and only one socket is accessed during
this time.
src/backend/libpq/pqcomm.c
src/backend/port/win32/socket.c
src/include/port/win32.h