merge sending and receiving packets

This commit adds receiving/parsing of tcp/ip packets to
sending packets. We now have the ability to actually implement
TCP, starting with the handshake