Skip to content

Commit 4f693d9

Browse files
authored
feat: host (#296)
1 parent 9f5367a commit 4f693d9

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
title : "Core Abstractions"
33
description: "Learn about the core pillars that compose each libp2p peer and a libp2p network."
4-
weight: 4
4+
weight: 5
55
---
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "libp2p Host"
3+
description: "A libp2p host is a program or process that runs on a peer and allows it to participate in a libp2p network."
4+
weight: 4
5+
---
6+
7+
A libp2p host is a program or process that allows a peer to participate
8+
in the libp2p network.
9+
10+
{{< alert icon="" context="note">}}
11+
There are [several implementations](https://libp2p.io/implementations/) of the
12+
libp2p host, and not all of the implementations support the features mentioned below.
13+
{{< /alert >}}
14+
15+
A libp2p host has a
16+
[unique identity](/concepts/introduction/core-abstractions/peers#peer-id)
17+
and can listen on different [transport protocols](/concepts/transports/overview),
18+
[dial connections to other hosts](/concepts/transports/listen-and-dial), and detect
19+
if it's a publicly reachable node or if it's behind a NAT/firewall with
20+
[AutoNAT](../nat/overview.md##automatic-router-configuration).
21+
The host can apply [hole punching techniques](/concepts/nat/hole-punching) to overcome
22+
NATs, find peers through a routing protocol like
23+
[DHT](/concepts/introduction/protocols/dht), and send messages across the network
24+
using [Gossipsub](/concepts/pubsub/gossipsub).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
title : "Protocol Basics"
33
description: "Learn about the core pillars that compose each libp2p peer and a libp2p network."
4-
weight: 4
4+
weight: 6
55
---

0 commit comments

Comments
 (0)