finish client socket constructor and connect call