Home > other >  In a multithreaded, network communication when the receive buffer provided by the who, by which thre
In a multithreaded, network communication when the receive buffer provided by the who, by which thre

Time:10-18

I was writing a TCP communication module based on IOCP, after receiving the data, to a sticky spell package processing thread broken package,

The question now is, I put together in a package thread processes the complete package, how to upper application?

If I keep the upper application registered in my here the callback, and in spelling a package called directly in the thread, so not take up my spell package thread?
Also, I now receive buffer is to use the object pool distribution ring buffer object, if the receiving data correction in other threads, I know how to use and timely recovery of buffer object?
  • Related