7 Jan
2019
7 Jan
'19
10:10 a.m.
I currently use a fixed size of array char buffer[MAX_SIZE] as a life time buffer attached to the class running on async_read, I think that was your point it should live as long as the socket lives. I think it should be fine for running a single thread, for multiple threads it might cause issues. Anyway, I am going to run a single thread, to use two static life time buffers, one for async_read, one for async_write. Thanks Richard.