finished TCP code

take a look and approve it if it meets what we will need to turn in.