From: Warren Young Date: July 14 2007 4:30am Subject: Re: Connection::connect() interface is changing List-Archive: http://lists.mysql.com/plusplus/6788 Message-Id: <4698516F.1060709@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jim Wallace wrote: > > FWIW, in my code, the db parameters are passed in from a config file so > I specify up to port every time. I do like the automatic determination of connection parameters from just the server_addr value in the new code, but I don't see why you can't have it both ways: Connection(blah, blah, server_addr = 0, port = 0); If port is zero and there is a colon in server_addr followed by something parseable as a port or service name, it can use that. If port is given an explicit value, let that override anything it finds in the server address parameter. If there is no colon and no explicit port is given, it takes the default.