A socket is essentially a “door” between an application process and end-to-end transport protocol:

image.png

2 socket types for 2 transport services: