On 14/09/16 10:41, [email protected] wrote:
in the function  uv_tcp_queue_accept , i found the following code ,

/* Prepare the overlapped structure. */
  memset(&(req->overlapped), 0, sizeof(req->overlapped));
  if (handle->flags & UV_HANDLE_EMULATE_IOCP) {
    req->overlapped.hEvent = (HANDLE) ((ULONG_PTR) req->event_handle | 1);
  }

why should the req->event_handle or 1  ,  can we change to

req->overlapped.hEvent = (HANDLE) ((ULONG_PTR) req->event_handle);


IIRC that will make the overlapped to not cause a completion when posted.

Are you running into a specific problem?

--
Saúl Ibarra Corretgé
http://bettercallsaghul.com

--
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to