Skip to content
  1. Dec 04, 2014
  2. Dec 03, 2014
  3. Dec 02, 2014
  4. Dec 01, 2014
  5. 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
    • Peter Wu's avatar
      lib/connect: restrict IP/TCP options to said sockets · aba5888f
      Peter Wu authored
      
      
      This patch prepares for adding UNIX domain sockets support.
      
      TCP_NODELAY and TCP_KEEPALIVE are specific to TCP/IP sockets, so do not
      apply these to other socket types. bindlocal only works for IP sockets
      (independent of TCP/UDP), so filter that out too for other types.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      aba5888f