RIOReceive function doesn't work (RIO using IOCP notifications)
범종 김
0
Reputation points
hello.
I want to using RIO for Winsock and IOCP notifications.
naively writes code, source link here .
I regist RIORecevie here
RIO_NOTIFICATION_COMPLETION type;
...
type.Type = RIO_IOCP_COMPLETION;
type.Iocp.IocpHandle = hIOCP;
type.Iocp.CompletionKey = &g_socket;
type.Iocp.Overlapped = &overlapped;
...
RIO_CQ Cqueue = g_rio.RIOCreateCompletionQueue(327680, &type);
...
RIO_RQ Rqueue = g_rio.RIOCreateRequestQueue(g_socket, 256, 1, 256, 1, Cqueue, Cqueue, NULL);
...
g_rio.RIOReceive(Rqueue, pBuf, 1, 0, pBuf);
...
GetQueuedCompletionStatus(hIOCP, &localnumberOfBytes, &localcompletionKey, &localpOverlapped ,INFINITE);
RIOSend function work, so client received data.
but, RIORecevie function doesn't work when client send data.
how to correct my code to work RIORecevie?
Sign in to answer