2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5ea9997bbec2e9bc47e94db0
|
2021-02-06 04:42:36 +00:00
|
|
|
title: Creating a TCP Client
|
2020-08-13 12:00:20 +02:00
|
|
|
challengeType: 11
|
|
|
|
videoId: ugYfJNTawks
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: creating-a-tcp-client
|
2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --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
|
|
|
|
|