Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to reactor pattern , i know that this pattern can solve the per client per thread problem in traditional block socket programming ,my question is that the virual function handle_input will be called by the event dispatcher to indicate that we can read now ,but is the program logic happens in such function .sometimes ,we need to send something back the the peer side by calling send for example ,but is this send function block or non block ,(as far as i know ,the socket is non block in async model)or how can i ensure it can send successfully ? then what's the difference between block plus thread and non block + reactor pattern in this case ,please help!!! many thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900