When setting up a socket objects, I use:
socket.socket()
Which, written more verbosely (also what it defaults to) is:
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
A few questions on this:
socket.AF_INET allows me to pass to pass a host/port, that is, an ipv4 address. Why is the convention to call it AF_INET (and not, for example, socket.IPV4. What does that stand for?
What is SOCK_STREAM? Does this just mean it's going to accept an HTTP request, or something else? Also, what would be the difference between using SOCK_STREAM and SOCK_RAW ?