From: Warren Young Date: January 9 2009 5:46pm Subject: Re: Connection timeout List-Archive: http://lists.mysql.com/plusplus/8312 Message-Id: MIME-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jan 9, 2009, at 5:34 AM, Diego Gavinowich wrote: > I would like to know if > there is a way to force an exception in MySQL++ in case doing *new > Connection("dbname", "host", "user", "passwd", port);* takes a long > time > (more than X seconds). Connection* conn = new Connection(); conn->set_option(new ConnectTimeoutOption(5)); conn->connect(stuff...);