[v6r13] Fixes for working correctly with ipv4 and ipv6 addresses

Fixed parameters being passed to __sockConnect from __socketConnect.