I try to make a winsock program with API but I don't know how to detect a connection request?

help please
martijn