Networks

Do you know the difference between TCP and IP? If you do know the difference, or want to know the difference, you are ready to experiment with network aware scripts and in depth access to Internet facilities. This chapter covers the network related functions that were not used in other chapters.

This chapter contains the following sections:
   In Depth
      Debugger
      DNS and MX Records
      Host Names
      IP Addresses
         ip2long()
         long2ip()
      Protocol Names and Numbers
         Service Names and Port Numbers
         getservbyname()
         getservbyport()
      Sockets
         pfsockopen()
         socket_get_status()
         socket_set_blocking()
         socket_set_timeout()
      System Log
         define_syslog_variables()
         openlog()
         syslog()
         closelog()
      NFS
      NIS
         Map
         yp_get_default_domain()
         yp_master()
         yp_order()
         yp_match()
         yp_first()
         yp_next()
      WDDX
         WDDX Packet
      CORBA
         orbitobject()
         orbitenum()
         orbitstruct()
         satelitte_caught_exception()
         satelitte_exception_id()
         satelitte_exception_value()
      Compression
         bzip2
         gzip
   Immediate Solutions
      Checking DNS Records
      Getting MX Records
      Getting the Host Name
         Getting the Host Name by Address
         Getting the Host Name by Name
         Getting a Host Address List by Name
      Listing Protocol Numbers
      Serialising Data with WDDX
         wddx_serialize_value()
         wddx_deserialize()
         serialize()
         wddx_serialize_vars()
         wddx_deserialize() with Variables
         wddx_packet_start()
         wddx_add_vars()
         wddx_packet_end()
      Compressing Data with zlib
      Writing a Private Log