Below is a step‑by‑step, ordered list of the POSIX functions you normally call when you work with a Unix‑domain (AF_LOCAL / AF_UNIX) stream socket (SOCK_STREAM).
I split the list into two sections – one for the server side and one for the client side – because the order of calls differs slightly.
| # | Function (header) | What it does | Typical usage notes |
|---|---|---|---|
| 1 | socket(int domain, int type, int protocol) #include |
Creates a new socket descriptor. | domain = AF_LOCAL (or AF_UNIX), type = SOCK_STREAM, protocol = 0. |