SHARE
TWEET

Untitled

a guest Feb 19th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import socket
  2.  
  3. udp_client =  socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
  4. message = "Hej,hopp"
  5. udp_client.sendto(message.encode(),("127.0.0.1",20002))        
  6. mess,server_address = udp_client.recvfrom(1024)
  7. print(mess.decode())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top