About 69 results
Open links in new tab
  1. 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...

  2. 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 …

  3. 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 …

  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. python - socket.shutdown vs socket.close - Stack Overflow

    sock.shutdown(socket.SHUT_RDWR) sock.close() What exactly is the purpose of calling shutdown on the socket and then closing it? If it makes a difference, this socket is being used for non-blocking IO.

  6. network programming - Understanding socket basics - Stack Overflow

    Socket is a software mechanism provided by the operating system. Like its name implies, you can think of it like an "electrical outlet" or some electrical connector, even though socket is not a physical …

  7. What's causing my java.net.SocketException: Connection reset?

    Feb 25, 2009 · (Continuation) Even HTTPClient doesn't set a default timeout on the created sockets. On the other hand, the server side all sockets must timeout after a few minutes or the connections will …

  8. "[Errno 10048] Only one usage of each socket address …

    Aug 19, 2017 · The only solution I've found is to use s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1), but when I try that I get this error: [Errno 10013] An attempt was made …

  9. c - socket connect () vs bind () - Stack Overflow

    Nov 19, 2014 · Both connect() and bind() system calls 'associate' the socket file descriptor to an address (typically an ip/port combination). Their prototypes are like:- int connect(int sockfd, const struct soc...

  10. How do SO_REUSEADDR and SO_REUSEPORT differ? - Stack Overflow

    To be able to bind a socket to the same addresses and port as another socket in TIME_WAIT state requires either SO_REUSEADDR to be set on that socket or SO_REUSEPORT must have been set …