Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| info:cursos:pue:python-pcpp1:m4:1.2 [08/01/2024 20:26] – [What can we expect from the server's response?] mate | info:cursos:pue:python-pcpp1:m4:1.2 [05/03/2024 09:09] (actual) – [Requesting a document from a server: continued] mate | ||
|---|---|---|---|
| Línia 129: | Línia 129: | ||
| === Requesting a document from a server | === Requesting a document from a server | ||
| Yes, it's send - look at how we combine it with our code from the previous lesson: | Yes, it's send - look at how we combine it with our code from the previous lesson: | ||
| - | < | + | < |
| sock.send(b" | sock.send(b" | ||
| bytes(server_addr, | bytes(server_addr, | ||
| Línia 179: | Línia 179: | ||
| The argument specifies the maximal acceptable length of the data to be received. If the server' | The argument specifies the maximal acceptable length of the data to be received. If the server' | ||
| - | You will need to invoke '' | + | You will need to invoke '' |
| There are lots of bad things which can spoil our game. For example, the server may not want to talk with us. | There are lots of bad things which can spoil our game. For example, the server may not want to talk with us. | ||