On Fri, Feb 21, 2014 at 1:39 PM, Ben Pfaff wrote:
> On Fri, Feb 21, 2014 at 01:14:35PM -0800, Gurucharan Shetty wrote:
>> +#ifndef _WIN32
>> pfd.events = POLLOUT;
>> +#else
>> +pfd.events = POLLWRNORM;
>> +#endif
>
> Does this mean that Windows has POLLWRNORM but not POLLOUT? POSIX
> say
On Fri, Feb 21, 2014 at 01:14:35PM -0800, Gurucharan Shetty wrote:
> +#ifndef _WIN32
> pfd.events = POLLOUT;
> +#else
> +pfd.events = POLLWRNORM;
> +#endif
Does this mean that Windows has POLLWRNORM but not POLLOUT? POSIX
says they're equivalent, so we could either use POLLWRNORM everywh
Also, Windows does not have a MSG_DONTWAIT. Get rid of it
as we always use non-blocking sockets.
Co-authored-by: Linda Sun
Signed-off-by: Linda Sun
Signed-off-by: Gurucharan Shetty
---
lib/socket-util.c | 18 +-
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/l