Bug 585575 – g_socket_listener_add_inet_port()
Bug 585575 – g_socket_listener_add_inet_port()

Change the logic in g_socket_listener_add_inet_port() as per the
reasoning in the bug report.

  - If the OS supports neither IPv6 or IPv4, fail.
  - If the OS supports only IPv6, do that.
  - If the OS supports only IPv4, do that.
  - If the OS supports IPv6 and IPv6 "speaks" IPv4 then bind it
    and be done.
  - If the OS supports IPv6 and IPv6 doesn't "speak" IPv4 then
    create an additional socket for IPv4.
  - If binding any socket fails then fail the entire call.

Also, remove the ability to call this function with port == 0.  This
is a useless thing to do anyway since you have no way to know what
port number was actually allocated.  We should have a separate
function to deal with this.

Distrotech/glib,gale320/glib,ahmedammar/platform_external_gst_glib,lukasz-skalski/glib,gale320/glib,tchakabam/glib,zsx/glib,justinkb/aosp-bluez.glib,pstglia/external-bluetooth-glib,ieei/glib-old-android,djdeath/glib,gale320/glib,MathieuDuponchelle/glib,01org/android-bluez-glib,iConsole/Console-OS_external_bluetooth_glib,endlessm/glib,tchakabam/glib,bluez-android/glib,Distrotech/glib,darren-clark/android_platform_external_bluetooth_glib,antono/glib,ieei/glib-old-android,antono/glib,pstglia/external-bluetooth-glib,pstglia/platform-external-bluetooth-glib,pstglia/platform-external-bluetooth-glib,tamaskenez/glib,darren-clark/android_platform_external_bluetooth_glib,gale320/glib,johne53/MB3Glib,cosimoc/glib,cosimoc/glib,OpenInkpot-archive/iplinux-glib2.0,johne53/MB3Glib,mzabaluev/glib,tamaskenez/glib,mzabaluev/glib,lukasz-skalski/glib,darren-clark/android_platform_external_bluetooth_glib,Distrotech/glib,justinkb/aosp-bluez.glib,pstglia/external-bluetooth-glib,dicer/android_external_glib,djdeath/glib,bluez-android/glib,endlessm/glib,justinkb/aosp-bluez.glib,ieei/glib,endlessm/glib,ieei/glib-old-android,iConsole/Console-OS_external_bluetooth_glib,iConsole/Console-OS_external_bluetooth_glib,MathieuDuponchelle/glib,bratsche/glib,tamaskenez/glib,zsx/glib,cosimoc/glib,OpenInkpot-archive/iplinux-glib2.0,bratsche/glib,ieei/glib,Distrotech/glib,ahmedammar/platform_external_gst_glib,gale320/glib,ieei/glib-old-android,bratsche/glib,antono/glib,MathieuDuponchelle/glib,bratsche/glib,johne53/MB3Glib,darren-clark/android_platform_external_bluetooth_glib,zsx/glib,endlessm/glib,pstglia/external-bluetooth-glib,zsx/glib,mzabaluev/glib,justinkb/aosp-bluez.glib,krichter722/glib,cention-sany/glib,ahmedammar/platform_external_gst_glib,pstglia/platform-external-bluetooth-glib,OpenInkpot-archive/iplinux-glib2.0,tamaskenez/glib,mzabaluev/glib,cention-sany/glib,cention-sany/glib,OpenInkpot-archive/iplinux-glib2.0,bluez-android/glib,krichter722/glib,tchakabam/glib,pstglia/external-bluetooth-glib,ieei/glib,johne53/MB3Glib,djdeath/glib,darren-clark/android_platform_external_bluetooth_glib,pstglia/platform-external-bluetooth-glib,lukasz-skalski/glib,iConsole/Console-OS_external_bluetooth_glib,krichter722/glib,dicer/android_external_glib,dicer/android_external_glib,01org/android-bluez-glib,lukasz-skalski/glib,cosimoc/glib,bluez-android/glib,01org/android-bluez-glib,mzabaluev/glib,pstglia/platform-external-bluetooth-glib,cention-sany/glib,dicer/android_external_glib,djdeath/glib,Distrotech/glib,tamaskenez/glib,ahmedammar/platform_external_gst_glib,ieei/glib,krichter722/glib,iConsole/Console-OS_external_bluetooth_glib,bluez-android/glib,01org/android-bluez-glib,tchakabam/glib,lukasz-skalski/glib,MathieuDuponchelle/glib,johne53/MB3Glib,justinkb/aosp-bluez.glib,01org/android-bluez-glib,OpenInkpot-archive/iplinux-glib2.0,krichter722/glib,tchakabam/glib,ieei/glib,MathieuDuponchelle/glib,cosimoc/glib,djdeath/glib,antono/glib,endlessm/glib,cention-sany/glib,johne53/MB3Glib,dicer/android_external_glib