support tcp query

add function handle_tcp() to count tcp query