[ad_1]
I think you need some modules( you may have some of them already ).
- Reading packet
- Detecting node id( with finding patterns ) and sending the packet to a proper thread.
- Processing with the packet delivered
In conclusion, you need three threads.
One, which I call it Main thread, manages 1, 2 in the list above,
the other two deal with packet which corresponds to the node id.
So you need two different type of threads.
Main thread and processing thread.
[ad_2]
solved Multiple Thread Processing [closed]