added connect functions using sockaddr directly