2020-04-29 20:41:51 -04:00
|
|
|
---
|
|
|
|
id: 5ea9997bbec2e9bc47e94db0
|
|
|
|
title: Creating a TCP Client
|
|
|
|
challengeType: 11
|
|
|
|
videoId: ugYfJNTawks
|
|
|
|
---
|
|
|
|
|
|
|
|
## Description
|
|
|
|
<section id='description'>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
<section id='tests'>
|
|
|
|
|
|
|
|
```yml
|
|
|
|
question:
|
2020-05-28 22:40:36 +09:00
|
|
|
text: |
|
|
|
|
Which socket object method lets you set the maximum amount of data your client accepts at once?
|
|
|
|
|
2020-04-29 20:41:51 -04:00
|
|
|
answers:
|
2020-05-28 22:40:36 +09:00
|
|
|
- |
|
|
|
|
`.recv(1024)`
|
|
|
|
- |
|
|
|
|
`.decode('ascii')`
|
|
|
|
- |
|
|
|
|
`.connect(host, port)`
|
|
|
|
solution: 1
|
2020-04-29 20:41:51 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|