2020-04-30 00:41:51 +00:00
|
|
|
---
|
|
|
|
id: 5ea9997bbec2e9bc47e94daf
|
|
|
|
title: Understanding Sockets and Creating a TCP Server
|
|
|
|
challengeType: 11
|
|
|
|
videoId: F1QI9tNuDQg
|
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
Which of the following functions creates a socket object?
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
`socket.bind((host, port))`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`socket.gethostbyname()`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`socket.socket(socket.AF_INET, socket.SOCK_STREAM)`
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
3
|
2020-04-30 00:41:51 +00:00
|
|
|
|