Hello. I've been reading about IOCP technology and want to implement it in my project. I've checked codeproject article source but there're about 4k lines only in server class so I was wondering if someone could hook me up with a example that will take things from start and provide minimal code example. Thanks in advance.
@kbw Thanks a bunch. There's a comment on almost each operation too. One question though, as far as I can tell it's using TransmitFile instead of WSASend/WSARecv. The server I'm aiming to implement IOCP won't be sending/receiving big amouns of data. Also here: https://support.microsoft.com/en-us/kb/192800 it says:
"Use Winsock2 IOCP-capable functions, such as WSASend and WSARecv, over Win32 file I/O functions, such as WriteFile and ReadFile. "
Would I be able to use respective winsock functions deriving from that example. I'd be willing to use TransmitFile as well if it's offering better performance without any drawbacks.