Beispiel #1
0
 /**
  * Constructor
  */
 function __construct($host = null, $port = 21, $user = '******', $pass = '******')
 {
     parent::__construct();
     if ($host) {
         $this->ftp_host = $host;
         $this->ftp_port = $port;
         $this->ftp_user = $user;
         $this->ftp_pass = $pass;
     }
 }
Beispiel #2
0
 /**
  * Constructor
  */
 function __construct($host, $port = 25, $user = null, $pass = null)
 {
     parent::__construct();
     $this->smtp_host = $host;
     $this->smtp_port = $port;
     $this->smtp_user = $user;
     $this->smtp_pass = $pass;
     $this->set_header('mime-version', '1.0');
     $this->set_header('date', date('r'));
     $this->set_header('x-mailer', 'Gekko');
 }
Beispiel #3
0
 /**
  * Constructor.
  */
 function __construct($host, $port = 80, $user = null, $pass = null)
 {
     parent::__construct();
     $this->http_host = $host;
     $this->http_port = $port;
     $this->http_user = $user;
     $this->http_pass = $pass;
     $this->set_header('host', "{$this->http_host}:{$this->http_port}");
     if ($this->http_user) {
         $this->set_header('authorization', "basic " . base64_encode("{$this->http_user}:{$this->http_pass}"));
     }
 }
Beispiel #4
0
 public function __construct($client_class, $bind_address = 0, $bind_port = 0, $domain = AF_INET, $type = SOCK_STREAM, $protocol = SOL_TCP)
 {
     parent::__construct($bind_address, $bind_port, $domain, $type, $protocol);
     $this->client_class = $client_class;
     $this->listen();
 }
 function __construct($ip = "127.0.0.1", $port = 4000, $auth = false)
 {
     parent::__construct($ip, $port, $auth);
 }
Beispiel #6
0
	public function __construct($client_class, $bind_address = 0, $bind_port = 0, $domain = AF_INET, $type = SOCK_STREAM, $protocol = SOL_TCP)
	{
		parent::__construct($bind_address, $bind_port, $domain, $type, $protocol);
		$this->client_class = $client_class;
		$this->listen();
        if (!$bind_address) {
        	$bind_address_print='0.0.0.0';
        } else {
        	$bind_address_print=$bind_address;
        }
        $this->startTime=time();
        $log=sprintf("Rating Engine listening on %s:%s",$bind_address_print, $bind_port);
        syslog(LOG_NOTICE,$log);
	}
 function __construct($ip = "0.0.0.0", $port = 4000, $auth = false)
 {
     parent::__construct($ip, $port, $auth);
     $this->start();
 }
 public function __construct()
 {
     parent::__construct();
     $this->run();
 }