Revert "template for tcp_module.cc"

This reverts commit 31dc7ab1b996ce7b43e672ce31c7ebdc5c9f9fce.
add template in code