How does networking work and what are the important parts to know?

What is a socket?

https://en.wikipedia.org/wiki/Berkeley_sockets