Two ways I know to communicate over the internet: Sockets and Datagrams.
No idea where or if TCP fits into these.