Original Post
For anyone who polls this board, I have a rather nice and clean example of using IO completion ports with sockets to make an echo server and I am using it for interviewing right now. Obviously I am not going to need it once I am done and I would not mind posting most of the code (it's a lot of code) and a short description on what is going on. This would be very useful to someone starting out with server code because it touches on some very complicated topics like lock free algorithms, synchronization, look aside lists... This is not something that someone outside of a professional programming environment would be likely to see. I want to post this because all the completion port examples I have seen on the net are either fundamentally broken, have improper/broken synchronization, or just very bad code - at one point in my life I wasted a lot of time with those examples... The lack of any good examples makes me nervous, I am not sure if anyone would actually take the time to review some very complex C code and actually see how completion ports and the surrounding synchronization, buffer handling, and lock-free algorithms are correctly implemented into a working system. So... Would anyone be interested in seeing this code or will I just be wasting a lot of my time doing a write up and post? Please post if you would like to see it. One rule: If you post includes the request to translate this code into C++/C#/Java or porting it to Linux please don't post. -Karl Strings