i am using winsock and i want to block my program till and until i get the message thru the winsock from another application.How do i do that using winsock or with some other technique

Enjoy Programming!!!