write function to obtain a new client connection.