File Descriptors — The Heart of Golang Connections— Golang net pkg #3
Published in
5 min readMay 24, 2019
In Part 1 of this series we introduced sockets as well as the socket API, we learnt how sockets were created and how to bind addresses to them. In Part 2, we saw how to create a TCP connection using sockets. In both those articles we lightly touched on file descriptors, and I said I would dedicate more time to talk about their significance. In this article we delve into the basics of File I/O as the concept of file descriptors is core to understanding how connections work in Golang.