Lines Matching defs:host
217 * @param string $host
221 public function connect(string $host)
228 $uri = $transport . '://' . $host;
245 $host,
267 * Create a socket by connecting to a specific host.
269 * @param string $host
274 public static function create(string $host, array $options = []) : Socket
276 return (new self(null, $options))->connect($host);
303 * @param string $host
308 public static function tcp(string $host, array $options = []) : Socket
310 return self::create($host, \array_merge($options, ['transport' => 'tcp']));
316 * @param string $host
321 public static function udp(string $host, array $options = []) : Socket
323 return self::create($host, \array_merge($options, [