Skip to content
  1. Dec 05, 2014
  2. Dec 04, 2014
  3. Dec 03, 2014
  4. Dec 02, 2014
  5. Dec 01, 2014
  6. Nov 30, 2014
    • Peter Wu's avatar
      sws: move away from IPv4/IPv4-only assumption · cf6c5c22
      Peter Wu authored
      
      
      Instead of depending the socket domain type on use_ipv6, specify the
      domain type (AF_INET / AF_INET6) as variable. An enum is used here with
      switch to avoid compiler warnings in connect_to, complaining that rc
      is possibly undefined (which is not possible as socket_domain is
      always set).
      
      Besides abstracting the socket type, make the debugging messages be
      independent on IP (introduce location_str which points to "port XXXXX").
      Rename "ipv_inuse" to "socket_type" and tighten the scope (main).
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      cf6c5c22