31 lines
377 B
Markdown
31 lines
377 B
Markdown
![]() |
---
|
||
|
id: 5ea9997bbec2e9bc47e94db0
|
||
|
title: Creating a TCP Client
|
||
|
challengeType: 11
|
||
|
videoId: ugYfJNTawks
|
||
|
dashedName: creating-a-tcp-client
|
||
|
---
|
||
|
|
||
|
# --question--
|
||
|
|
||
|
## --text--
|
||
|
|
||
|
Which socket object method lets you set the maximum amount of data your client accepts at once?
|
||
|
|
||
|
## --answers--
|
||
|
|
||
|
`.recv(1024)`
|
||
|
|
||
|
---
|
||
|
|
||
|
`.decode('ascii')`
|
||
|
|
||
|
---
|
||
|
|
||
|
`.connect(host, port)`
|
||
|
|
||
|
## --video-solution--
|
||
|
|
||
|
1
|
||
|
|