Back to Freecodecamp

Understanding Sockets and Creating a TCP Server

curriculum/challenges/english/blocks/python-for-penetration-testing/5ea9997bbec2e9bc47e94daf.md

latest247 B
Original Source

--questions--

--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