tcp message dispatcher
message handling
add comments