currently I have a server and a client console application in c++ using winsock. In my situation the client is able to send a message to the server, which listens and it can aswer, but I need to make them to be able to always recieve and send messages to one another.
My problem is I can not use threads, I need to achieve this goal without them. How can this be done by sockets and loops? Any hint is welcome.
Thank you