Ruben Safir Secretary NYLXS <[EMAIL PROTECTED]> wrote:

> Is there a way of checking for live connections prior to using
> mysql_connect in the C API (asside from mysql_ping)

Try to open a TCP connection to port 3306 of target server. If 
successful - then "connections are live". Close that test 
connection correctly and then do mysql_connect.

Just a first idea.





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to