Socket API

TCP Socket

image.png
TCP socket is an endpoint instance defined by an IP address and a port in the context of either a particular TCP connection or the listening state

UDP Socket

image.png