Normalize connect()

Change-Id: I1e4098f6aaff5a75dea2e786f3f4404ed7e6ba76
Reviewed-by: David Schulz <david.schulz@digia.com>