Im new to network programming and in particular to async-processes. Start also new with the boost-lib
Im implementing a class, to access an imap-server. I can send and receive the commands and the response, in general
The response is queued in a dequeue inside the class. I put simple the response lines in the queue, for further processing.
What's now the best way to process the queued response?
- An extra thread to check(time based) the queue, for new entries?
- Each time a new entries is pushed to the queue make some callback?
How can I implement and integrate this callback?
Maybe someone have a short example for this.
Thanks