Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Python Programming/Sockets

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Threading GUI Programming HTTP Client Make a very simple HTTP client import socket s = socket.socket() s.connect(('localhost', 80)) s.send('GET / HTTP/1.1\nHost:localhost\n\n') s.recv(40000) # receive 40000 bytes NTP/Sockets Connecting to and reading an NTP time server, returning the time as follows ntpps picoseconds portion of time ntps seconds portion of time ntpms milliseconds portion of time ntpt 64-bit ntp time, seconds in upper 32-bits, picoseconds in lower 32-bits Threading GUI Programming