Makes connect function to return an Endpoint

Like bind, connect now returns and Endpoint, created the same way.