none
Using Registered IO on win 8 / 2012 Server RRS feed

  • Question

  • I am trying to convert an existing application to use the new Registered IO, but cannot see how I am suposed to get Connect notification.



    The existing code uses 

    WSAEventSelect(Socket,  rioEventHandle,  FD_ACCEPT | FD_CONNECT | FD_CLOSE )

    to get event notification of the connect result, but this errors with

    "An operation was attempted on something that is not a socket" when the socket is opened with 

    WSASocket( PF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_REGISTERED_IO )

    If I dont use the WSA_FLAG_REGISTERED_IO then the WSAEventSelect succeeds.

    Have tried on windows 8 and 2012 server with the same results. I cannot find any examples or help of how to get connect notification with registered IO.

    The RIOCreateCompletionQueue and RIOCreateRequestQueue both work OK.
    Wednesday, October 8, 2014 2:30 AM