Adding parameters to connect()

Signed-off-by: Amador Pahim <apahim@redhat.com>