Skip to Content
Network Programming with Go
book

Network Programming with Go

by Adam Woodbeck
March 2021
Intermediate to advanced
392 pages
9h 46m
English
No Starch Press
Content preview from Network Programming with Go

7 Unix Domain Sockets

So far in this book, we’ve discussed communications between nodes on a network. But not all network programming occurs exclusively between separate nodes. Your applications may sometimes need to communicate with services, such as a database, hosted on the same node.

One way to connect your application to a database running on the same system would be to send data to the node’s IP address or localhost address—commonly 127.0.0.1—and the database’s port number. However, there’s another way: using Unix domain sockets. The Unix domain socket is a communication method that uses the filesystem to determine a packet’s destination ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Jan Newmarch, Ronald Petty
Programming Kubernetes

Programming Kubernetes

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9781098128890Errata Page