Please be sure to read the descriptions to avoid confusion.
The socket extension implements a low-level interface to the socket communication functions, providing the possibility to act as a socket server as well as a client.