Hi, I am making a turn-based card game application.
One feature is it allows you to use cards during your opponent's turn.
I need some way of pausing a subroutine, waiting for an opponent's response, and executing that response before finishing your subroutine.
I've already made a winsock control, and when your opponent responds it jumps to winsock_dataArrival. This is fine but I need some way of waiting for your opponent to send data again which tells when they are done responding. From there I would start the dataArrival routine over again and then execute their response.
Any thoughts on how to accomplish this? I've gotten suggestions on Do while loops but from my experience they always crash! :blush: Thanks!