A framework to handle the traffic of transport layer(c++)