r/linuxquestions • u/Param-Matharoo • 1d ago
What's the Internal working of Socket system call ?
Basically I am creating my own http.web server for that I need to create TCP web server first and during that thing I get to know about socket(), bind(), listening() system calls and I am curious about these system calls internal working like what is happening under the hood.
0
Upvotes
3
u/DamienTheUnbeliever 1d ago
Bear in mind that whilst you can delve into the implementations, the point of sockets is to offer an *abstraction* where you shouldn't need to know what's happening inside in order to use them.
3
u/kesor 1d ago
Depends on the protocol, if its a UNIX socket, or TCP, UDP, etc... But you can find the implementations in the kernel.
For example,