About 55 results
Open links in new tab
  1. sockets - recv () in Python - Stack Overflow

    new_socket, addr = listening_socket.accept() open_sockets.append(new_socket) If the socket is not listening_socket, then it's a socket which is (or was) connected to a remote client. And again since …

  2. python - When does socket.recv (recv_size) return? - Stack Overflow

    From test, I concluded that in following three cases the socket.recv(recv_size) will return. After the connection was closed. For example, the client side called socket.close() or any socket error

  3. Python Socket Programming: recv and recvfrom - Stack Overflow

    I am new to python and socket programming, and I'm confused about about usage for socket.recvfrom() and socket.recv(). I understand that people usually use recvfrom() for UDP and recv() for TCP.

  4. Python socket recv function - Stack Overflow

    Oct 6, 2020 · In the python socket module recv method socket.recv(bufsize[, flags]) docs here , it states: Receive data from the socket. The return value is a bytes object representing the data received. The …

  5. How to set timeout on python's socket recv method?

    Apr 27, 2010 · In socket.recv () Python (2.6) calls select/poll internally with the timeout and then recv () is called right after. So if you use a blocking socket and between these 2 calls the other end point …

  6. Python Socket Receive Large Amount of Data - Stack Overflow

    Jul 16, 2013 · TCP/IP is a stream-based protocol, not a message-based protocol. There's no guarantee that every send() call by one peer results in a single recv() call by the other peer receiving the exact …

  7. How does the python socket.recv() method know that the end of the ...

    Dec 29, 2016 · Will the recv-method wait for a certain amount of time (say 2 seconds) for more data to come and stop working after this time span? (I.e., if the rest of the data arrives after 3 seconds, the …

  8. What does Python's socket.recv() return for non-blocking sockets if no ...

    Jul 15, 2014 · As a simple example, let's say my socket's timeout is set to 1.2342342 (whatever non-negative number you like here) seconds and I call socket.recv(1024), but the other side doesn't send …

  9. Python sockets buffering - Stack Overflow

    May 5, 2009 · The recv() call is handled directly by calling the C library function. It will block waiting for the socket to have data. In reality it will just let the recv() system call block. file.readline() is an …

  10. How to read Python socket recv - Stack Overflow

    Aug 24, 2012 · How to read Python socket recv Asked 13 years, 5 months ago Modified 13 years, 5 months ago Viewed 15k times