About 194,000 results
Open links in new tab
  1. Basic Python client socket example - Stack Overflow

    I've been trying to wrap my head around how sockets work, and I've been trying to pick apart some sample code I found at this page for a very simple client socket program. Since this is …

  2. python - basic understanding of simple socket server - Stack …

    Sep 17, 2016 · 1 I am new to socket programming and am trying to understand how sockets work. Presently I am trying to play with python socket library to see how it works. Now there are a …

  3. How Do I Use Raw Socket in Python? - Stack Overflow

    Jul 13, 2009 · From what I gathered, Raw Socket usage in Python is nearly identical in semantics to UNIX's raw socket, but without the struct s that define the packets structure. I was …

  4. Python socket library: OSError: [WinError 10057] A request to send …

    Dec 18, 2022 · OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto …

  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 …

  6. Finding local IP addresses using Python's stdlib

    Oct 3, 2008 · How can I find local IP addresses (i.e. 192.168.x.x or 10.0.x.x) in Python platform independently and using only the standard library?

  7. How to properly send HTTP response with Python using socket …

    Apr 12, 2012 · How to properly send HTTP response with Python using socket library only? Asked 13 years, 8 months ago Modified 2 years, 5 months ago Viewed 93k times

  8. Sending a file over TCP sockets in Python - Stack Overflow

    2 This is a top Google result for "send a file through a socket in Python". The fastest way to send a file through a socket in Python is to use socket.sendfile, introduced in Python 3.5:

  9. python socket GET - Stack Overflow

    Dec 10, 2015 · import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("www.cnn.com" , 80)) s.sendall("GET / HTTP/1.1\r\n") print s.recv(4096) s.close but …

  10. python - Difference between websocket and websockets - Stack …

    Websocket , the native python low-level protocol useful for advanced users building custom protocols on top of WebSocket or for building custom servers. Websocket-client, a client-side …