First connection code

Sending packets.