File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments