Extracted tcp logic in seperate folder.