Moved the tcp code into a separate package so i don't have to trepeat the code for the capture and listener package