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 &quot;host&quot; on &quot;port&quot; or to the unix &quot;socket&quot; on
18 *  the local machine and authenticates with &quot;user&quot; and &quot;password&quot;.  Failed
19 *  connections will be retried for &quot;tries&quot; times on interval &quot;retrytime&quot;.
20 *  If &quot;tries&quot; is 0 then retries will continue forever.  If &quot;retrytime&quot; is 0
21 *  then retries will be attempted on a default interval.
22 *  If the &quot;socket&quot; parameter is nether nil nor &quot;&quot; then an attempt will be
23 *  made to connect through it before attempting to connect to &quot;host&quot; on
24 *  &quot;port&quot;.  If it is nil or &quot;&quot; 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>