how to set time out in Casyncsocket



I want to realize a time out control in CAsyncScoket.How can i do this.

I will send a packet to a server ,and wait the response data from the
server.when time out ,i will send it again.

how can i realize this.


.


Loading