Skip to content

Commit 735d053

Browse files
committed
Remove redundant information about reading the client's PING command from config.
1 parent 17457fc commit 735d053

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

solutions/python/02-rg2/config.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,7 @@ hints:
1212
1313
The above code uses `_` to ignore the second return value, which is the client's address.
1414
15-
- title_markdown: "How do I read the client's PING command?"
16-
body_markdown: |-
17-
Use the [`recv()`](https://docs.python.org/3/library/socket.html#socket.socket.recv) method to read the client's command:
18-
19-
```python
20-
# Read 14 bytes from the client's connection
21-
connection.recv(14)
22-
```
23-
24-
The PING command is 14 bytes long when encoded as RESP: `*1\r\n$4\r\nPING\r\n`. You'll learn about RESP in later stages.
25-
26-
- title_markdown: "How do I send the response to the client?"
15+
- title_markdown: "How do I send a response to the client?"
2716
body_markdown: |-
2817
Use the [`sendall()`](https://docs.python.org/3/library/socket.html#socket.socket.sendall) method on the client's connection for this:
2918

0 commit comments

Comments
 (0)