Весь написанный код

This commit is contained in:
2026-05-07 00:56:53 +03:00
parent 131cb3e8d1
commit 93e33b170b
12 changed files with 113 additions and 7 deletions
+7
View File
@@ -0,0 +1,7 @@
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client.sendto(b'hello server and someone else', ('127.0.0.1', 10006))
data, _ = client.recvfrom(1024)
print(f"Ответ от сервера: {data.decode()}")
client.close()