3 * curl-de-sac - curl-de-sac.phh
5 * Copyright (C) 2014 Matteo Nastasi
6 * mailto: nastasi@alternativeoutput.it
7 * matteo.nastasi@gmail.com
8 * web: http://www.alternativeoutput.it
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details. You should have received a
19 * copy of the GNU General Public License along with this program; if
20 * not, write to the Free Software Foundation, Inc, 59 Temple Place -
21 * Suite 330, Boston, MA 02111-1307, USA.
25 $G_curl_de_sac_version = "0.1";
31 function CDS_cmd_cls($name, $tout)
39 print "THIS MUST BE IMPLEMENTED";
48 function Curl_de_sac() {
49 $this->mh = curl_multi_init();
50 $this->cmd_cls = array();
53 function cmd_register($cmd_cls)
55 if (get_class($cmd_cls) != 'CDS_cmd_cls' && is_subclass_of($cmd_cls, 'CDS_cmd_cls') == FALSE)
58 if (isset($this->cmd_cls[$cmd_cls->name]))
61 $this->cmd_cls[$cmd_cls->name] = $cmd_cls;