pike.git / lib / modules / Sql.pmod / rsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/rsql.pike:20:   static int seqno = 0;      static private string host, user, pw;   static private int port;      static void low_reconnect()   {    object losock = Stdio.File();    if(sock)    destruct(sock); -  if(!losock->connect(host, port|RSQL_PORT)) +  if(!losock->connect(host, port||RSQL_PORT))    ERROR("Can't connect to "+host+(port? ":"+port:"")+": "+    strerror(losock->errno())+"\n");    if(8!=losock->write("RSQL%4c", RSQL_VERSION) ||    losock->read(4) != "SQL!") {    destruct(losock);    ERROR("Initial handshake error on "+host+(port? ":"+port:"")+"\n");    }    sock = losock;    if(!do_request('L', ({user,pw}), 1)) {    sock = 0;