Include "php.h", otherwise we don't have access to the PHP and autoconf macros.
Added timeout argument, but not used yet
Network related functions, only for internal use by other PHP code. Tries to hide the details of address families/protocols, and to reduce duplication of code.
12345678910