I thought you were talking generically there Well, for that, you can use the WSAEventSelect function.