About 67 results
Open links in new tab
  1. What is the difference between a port and a socket?

    Sep 30, 2008 · An endpoint (socket) is defined by the combination of a network address and a port identifier. Note that address/port does not completely identify a socket (more on this later). The …

  2. python - socket.shutdown vs socket.close - Stack Overflow

    Jan 3, 2009 · Most socket libraries, however, are so used to programmers neglecting to use this piece of etiquette that normally a close is the same as shutdown(); close(). So in most situations, an explicit …

  3. What exactly is Socket - Stack Overflow

    I don't know exactly what socket means. A server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to...

  4. What is AF_INET in socket programming? - Stack Overflow

    Jul 16, 2025 · AF_INET is an a ddress f amily that is used to designate the type of addresses that your socket can communicate with (in this case, Internet Protocol v4 addresses). When you create a …

  5. networking - What is a socket? - Unix & Linux Stack Exchange

    113 A socket is a pseudo-file that represents a network connection. Once a socket has been created (identifying the other host and port), writes to that socket are turned into network packets that get …

  6. c# - An attempt was made to access a socket in a way forbidden by its ...

    IIS was the main offender for me. My IIS was running and it restrains any new socket connections from opening. The problem was resolved for me by stopping IIS by running the command " iisreset -stop " …

  7. Socket Programming in C++ - Stack Overflow

    Can anybody provide me some sample example on Client and server connection using sockets in C++. I have gone through some tutorials now i want to implement it. How to start ?

  8. Python socket.error: [Errno 111] Connection refused

    Python socket.error: [Errno 111] Connection refused Asked 13 years, 6 months ago Modified 4 years, 1 month ago Viewed 475k times

  9. Understanding INADDR_ANY for socket programming - Stack Overflow

    May 12, 2013 · When listen (2) is called on an unbound socket, the socket is automatically bound to a random free port with the local address set to INADDR_ANY. When connect (2) is called on an …

  10. c - close vs shutdown socket? - Stack Overflow

    Nov 12, 2010 · In C, I understood that if we close a socket, it means the socket will be destroyed and can be re-used later. How about shutdown? The description said it closes half of a duplex connection …