Category Archives: Uncategorized

IOCP with the new thread pool API.

***************** UPDATES ***************** Whoa, now I have got sometime to talk about SO_CONDITIONAL_ACCEPT. The bottom line is that you don’t need to use this option at all. (Actually, you should not use it as there are some drawbacks about it. Please … Continue reading

Posted in Uncategorized | Tagged , , | 8 Comments

IOCP with the original (or old) thread pool API.

This is the 2nd post for the IOCP series. 1. Network Programming with IOCP and Thread Pool – Intro Well, a few months ago, I had some time to do my personal project and I decided to explore IOCP and … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Code Review. Why I like it.

I was trying to search who invents this review system but Wikipedia only shows the simple definition and several different methods about it. Maybe, there is no inventor because it just started between programmers naturally. It’s good to read the page … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

What you should know Whenever you see STL containers or strings.

We all know that stl is great. It has fantastic daily-used data structures, algorithms and string. We’ve learned that we should use it instead of array or char*. Yeah, it enables us to avoid reinventing the wheel! and save lots … Continue reading

Posted in Uncategorized | 1 Comment

Updates are tempting, but are they safe? (about KB971090)

Last week, I had a task for fixing a bug related to a library from outside my company. First of all, I found that we were using its functions in a wrong way so I made some changes to correct … Continue reading

Posted in Uncategorized | Leave a comment

What are you assuming?

Last week, I was reading src code and found that it used zero as an initial value for a handle. But, it also used INVALID_HANDLE for the same purporse. Well, I thought that INVALID_HANDLE was zero. However, it turned out … Continue reading

Posted in Uncategorized | Leave a comment

Why small mistakes are disastrous?

I made a stupid mistake. very stupid one! Do you see the problem? Yes, only one character ruined the whole process. It should be like this: If the function containing this problem is rarely called, it’s a time bomb inside … Continue reading

Posted in Uncategorized | 1 Comment