rx3:index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rx3:index [2019/03/27 16:32] – [Serveur TCP (version multithread)] orel | rx3:index [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 166: | Line 166: | ||
<code python> | <code python> | ||
# | # | ||
- | import sys | ||
import socket | import socket | ||
- | |||
- | HOST = ' | ||
- | PORT = 80 | ||
s = socket.socket(socket.AF_INET, | s = socket.socket(socket.AF_INET, | ||
- | s.connect((HOST, PORT)) | + | s.connect((" |
- | s.sendall(b' | + | s.sendall(b' |
data = s.recv(1024) | data = s.recv(1024) | ||
s.close() | s.close() |
rx3/index.1553704347.txt.gz · Last modified: 2024/03/18 15:05 (external edit)