Add transport_opts to connect_sock bapi