Changed return values on connect and accept