We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43dd21c commit c5208fbCopy full SHA for c5208fb
examples/wiznet5k_simpleserver.py
@@ -29,9 +29,12 @@
29
server.listen() # Begin listening for incoming clients
30
31
while True:
32
+ print(f"Accepting connections on {server_ip}:{server_port}")
33
conn, addr = server.accept() # Wait for a connection from a client.
34
+ print(f"Connection accepted from {addr}, reading exactly 1024 bytes from client")
35
with conn:
36
data = conn.recv(1024)
37
if data: # Wait for receiving data
38
print(data)
39
conn.send(data) # Echo message back to client
40
+ print("Connection closed")
0 commit comments