The socket extension was written to provide a useable interface to the powerful BSD sockets.
When using these functions, it is important to remember that while many of them have identical names to their C counterparts, they often have different declarations. Please be sure to read the descriptions to avoid confusion.