Add transport independent connect function

Fixes #32