Skip to content

Commit 6f5ab3f

Browse files
committed
Add TOC
1 parent d1b3d79 commit 6f5ab3f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ this specification also highlights the
1212
The mDNS protocol is related to, but independent of, DNS-Based Service Discovery (DNS-SD)
1313
as defined in [RFC 6763](http://tools.ietf.org/html/rfc6763).
1414

15+
**Table of Contents**
16+
17+
* [Quickstart example](#quickstart-example)
18+
* [Usage](#usage)
19+
* [Factory](#factory)
20+
* [createResolver()](#createresolver)
21+
* [Resolver](#resolver)
22+
* [Install](#install)
23+
* [License](#license)
24+
1525
> Note: This project is in beta stage! Feel free to report any issues you encounter.
1626
1727
## Quickstart example
@@ -48,6 +58,10 @@ $factory = new Factory($loop);
4858

4959
The `createResolver()` method can be used to create a mDNS resolver instance that sends multicast DNS queries and waits for incoming unicast DNS responses. It returns a [`Resolver`](#resolver) instance.
5060

61+
```php
62+
$resolver = $factory->createResolver();
63+
```
64+
5165
### Resolver
5266

5367
The [`Factory`](#factory) creates instances of the `React\Dns\Resolver\Resolver` class from the [react/dns](https://github.com/reactphp/dns) package.

0 commit comments

Comments
 (0)