mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-18 06:30:23 -04:00
cleanup names for dirs
This commit is contained in:
parent
0904ec1dc4
commit
0da3cbd74a
80 changed files with 62 additions and 2263 deletions
16
boilerplates-security/python_sockets/udp_client.py
Normal file
16
boilerplates-security/python_sockets/udp_client.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import socket
|
||||
|
||||
HOST = '127.0.0.1'
|
||||
PORT = 9000
|
||||
DATA = 'AAAAAAAAAA'
|
||||
|
||||
def udp_client():
|
||||
|
||||
client = socket.socket( socket.AF_INET, socket.SOCK_DGRAM)
|
||||
client.sendto(DATA, ( HOST, PORT ))
|
||||
data, addr = client.recvfrom(4096)
|
||||
print(data, adr)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
udp_client()
|
Loading…
Add table
Add a link
Reference in a new issue