1<?xml version="1.0" encoding="iso-8859-1"?> 2<!DOCTYPE html 3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 6<html> 7<head> 8 <title>new (SQLRConnection)</title> 9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 10 <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> 11</head> 12<body class="standalone-code"> 13 <pre>/** 14 * call-seq: 15 * new(host, port, socket, user, password, retrytime, tries) 16 * 17 * Initiates a connection to "host" on "port" or to the unix "socket" on 18 * the local machine and authenticates with "user" and "password". Failed 19 * connections will be retried for "tries" times on interval "retrytime". 20 * If "tries" is 0 then retries will continue forever. If "retrytime" is 0 21 * then retries will be attempted on a default interval. 22 * If the "socket" parameter is nether nil nor "" then an attempt will be 23 * made to connect through it before attempting to connect to "host" on 24 * "port". If it is nil or "" then no attempt will be made to connect 25 * through the socket.*/ 26static VALUE sqlrcon_new(VALUE self, VALUE host, VALUE port, VALUE socket, 27 VALUE user, VALUE password, 28 VALUE retrytime, VALUE tries) { 29</pre> 30</body> 31</html>