This repository has been archived on 2018-04-01. You can view files and clone it, but cannot push or open issues or pull requests.
php-asio/stubs/TcpResolver.php

37 lines
801 B
PHP

<?php
/**
* php-asio/stubs/TcpResolver.php
*
* This file is a stub of php-asio, which is implemented in extension asio.so.
* For source code of asio.so, see src/ directory.
*
* @author CismonX<admin@cismon.net>
*/
namespace Asio;
/**
* Class TcpResolver
*
* Provides the ability to resolve a query to an array of endpoints.
* Remote service should use TCP as transport protocol.
*
* @package Asio
*/
final class TcpResolver implements Resolver
{
/**
* This class can only be instantiated using `Service::addTcpResolver()`.
*/
private function __construct() {}
/**
* {@inheritdoc}
*/
function resolve(string $host, string $service = '', callable $callback = null, $argument = null) {}
/**
* {@inheritdoc}
*/
function cancel() {}
}