add files

This commit is contained in:
2026-02-04 17:24:25 +03:00
commit e939a3bed9
7 changed files with 316 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
client.sendto(b'hello server', ('255.255.255.255', 10001))
data, _ = client.recvfrom(1024)
print(f"Ответ от сервера: {data.decode()}")
client.close()