Questions

  1. What method of the sockets module allows a domain name to be resolved from an IP address?
  2. What method of the socket module allows a server socket to accept requests from a client socket from another host?
  3. What method of the socket module allows you to send data to a given address?
  4. What method of the socket module allows you to associate a host and a port with a specific socket?

  1. What is the the difference between the TCP and UDP protocol and how do you implement them in Python with the socket module?
  2. What method of the socket module allows you to convert a hostname to the IPv4 address format?
  3. What method of the socket module allows you to implement port-scanning with sockets and check the port state?
  4. What exception of the ...

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.