Skip to content

Commit 3d019b3

Browse files
djcRalith
authored andcommitted
book: clean up formatting
1 parent bbf9510 commit 3d019b3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/book/src/quinn/set-up-connection.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Connection Setup
22

33
In the [previous chapter](certificate.md) we looked at how to configure a certificate.
4-
This aspect is omitted in this chapter to prevent duplication.
5-
But **remember** that this is required to get your [Endpoint][Endpoint] up and running.
6-
This chapter explains how to set up a connection and prepare it for data transfer.
4+
This aspect is omitted in this chapter to prevent duplication.
5+
But **remember** that this is required to get your [Endpoint][Endpoint] up and running.
6+
This chapter explains how to set up a connection and prepare it for data transfer.
77

8-
It all starts with the [Endpoint][Endpoint] struct, this is the entry point of the library.
8+
It all starts with the [Endpoint][Endpoint] struct, this is the entry point of the library.
99

1010
## Example
1111

12-
Let's start by defining some constants.
12+
Let's start by defining some constants.
1313

1414
```rust
1515
{{#include set-up-connection.rs:5:13}}
1616
```
1717

1818
**Server**
1919

20-
First, the server endpoint should be bound to a socket.
20+
First, the server endpoint should be bound to a socket.
2121
The [server()][server] method, which can be used for this, returns the `Endpoint` type.
2222
`Endpoint` is used to start outgoing connections and accept incoming connections.
2323

@@ -28,15 +28,15 @@ The [server()][server] method, which can be used for this, returns the `Endpoint
2828
**Client**
2929

3030
The [client()][client] returns only a `Endpoint` type.
31-
The client needs to connect to the server using the [connect(server_name)][connect] method.
31+
The client needs to connect to the server using the [connect(server_name)][connect] method.
3232
The `SERVER_NAME` argument is the DNS name, matching the certificate configured in the server.
3333

3434
```rust
3535
{{#include set-up-connection.rs:29:39}}
3636
```
3737
<br><hr>
3838

39-
[Next up](data-transfer.md), let's have a look at sending data over this connection.
39+
[Next up](data-transfer.md), let's have a look at sending data over this connection.
4040

4141

4242
[Endpoint]: https://docs.rs/quinn/latest/quinn/struct.Endpoint.html

0 commit comments

Comments
 (0)