A socket is an abstract representation of a network endpoint. Depending on the operating system, we can construct sockets based on the following features: domain, type, and protocol. A “domain“ typically represents either a remote network connection (e.g., via IPv4 or IPv6) or a local connection (e.g., via filesystem). Various optimizations can be acquired when we don’t have to concern ourselves crossing many networks. A “type” selects a connection-oriented or connectionless pairing of sockets. Sockets ...
3. Socket-Level Programming
Get Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.