Commit a4e6865c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Accept non-socket handles through net_Read* (closes #731)

parent 1a87ee6e
...@@ -222,7 +222,11 @@ receive: ...@@ -222,7 +222,11 @@ receive:
if ((*vsv) != NULL) if ((*vsv) != NULL)
n = (*vsv)->pf_recv ((*vsv)->p_sys, buf, buflen); n = (*vsv)->pf_recv ((*vsv)->p_sys, buf, buflen);
else else
#if defined(WIN32) || defined(UNDER_CE)
n = recv (*fdv, buf, buflen, 0); n = recv (*fdv, buf, buflen, 0);
#else
n = read (*fdv, buf, buflen);
#endif
if (n == -1) if (n == -1)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment