A basic TCP connection API created for fun.