Need to use winsock api for tcp calls on windows
Need to use winsock api for tcp calls on windows

Use WSARecv instead of recv() and WSAGetLastError for retrieving
error code.

Change-Id: I55d2a84747f5d19ce95746445f5b23a668245176
Reviewed-on: http://review.couchbase.org/8360
Tested-by: Bin Cui <ed18693fff32c00e22495f4877a3b901bed09041@gmail.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

daverigby/kv_engine,hisundar/ep-engine,abhinavdangeti/ep-engine,teligent-ru/ep-engine,hisundar/ep-engine,owendCB/ep-engine,couchbaselabs/ep-engine,couchbase/ep-engine,couchbase/ep-engine,owendCB/ep-engine,sriganes/ep-engine,abhinavdangeti/ep-engine,sriganes/ep-engine,couchbaselabs/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,membase/ep-engine,daverigby/ep-engine,jimwwalker/ep-engine,couchbaselabs/ep-engine,couchbaselabs/ep-engine,abhinavdangeti/ep-engine,hisundar/ep-engine,hisundar/ep-engine,daverigby/kv_engine,teligent-ru/ep-engine,daverigby/kv_engine,membase/ep-engine,owendCB/ep-engine,membase/ep-engine,jimwwalker/ep-engine,daverigby/ep-engine,couchbase/ep-engine,teligent-ru/ep-engine,sriganes/ep-engine,sriganes/ep-engine,abhinavdangeti/ep-engine,daverigby/kv_engine,membase/ep-engine,teligent-ru/ep-engine,owendCB/ep-engine,jimwwalker/ep-engine,daverigby/ep-engine,abhinavdangeti/ep-engine,couchbaselabs/ep-engine,daverigby/ep-engine