Communication Interface
Unlike UDP Socket, client socket need to connect() , server socket need to bind() and listen() and source IP address and port number are also identifier. When contacted by client, server TCP creates new socket for server
So demux process use all four values tuple for directing segment to appropriate socket.
There is no single TCP implementation and they are compatible with message format
TCP Socket Notion



CloudFlare Workers
Announcing connect() — a new API for creating TCP sockets from Cloudflare Workers
Today, we are excited to announce a new API in Cloudflare Workers for creating outbound TCP sockets, making it possible to connect directly to databases and any TCP-based service from Workers
https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/

What they don't teach you about sockets
In order to effectively write applications that communicate via sockets, there were some realizations I needed to make that weren't explicitly told to me by any of the documentation I read. If you have experience writing applications using sockets, all of this information should be obvious to you.
https://macoy.me/blog/programming/Sockets

Seonglae Cho