stream-tcp: Use closesocket instead of close for sockets.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 27 Mar 2014 23:39:35 +0000 (16:39 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 28 Mar 2014 17:53:47 +0000 (10:53 -0700)
commit508caab4ac3300f4023ce8650a5e2a40bc91d4c7
treef3ac4e2a53be7a84a36e9d302359ae2aad91bc98
parent156f7a40e3f93a4498b6d16bf698c624a81ad1fb
stream-tcp: Use closesocket instead of close for sockets.

We should use closesocket() while closing sockets so that
closing sockets work fine on both POSIX and Windows.
(In POSIX, we #define closesocket close)

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/stream-tcp.c