function SetServer($host, $port = 0)
{
assert(is_string($host));
if ($host[0] == '/') {
$this->_path = 'unix://' . $host;
return;
}
if (substr($host, 0, 7) == "unix://") {
$this->_path = $host;
return;
}
assert(is_int($port));
$this->_host = $host;
$this->_port = $port;
$this->_path = '';
}