Pustaka Taratsa
Python: Soket UDP

Python: Soket UDP

Penulis: Onno Widodo Purbo

Contents 1 UDP Send / Client 2 UDP Receive / Server 3 Alternatif Server 4 Referensi UDP Send / Client import socket UDP_IP = "127.0.0.1" UDP_PORT = 5005 MESSAGE = "Hello, World!" print( "UDP target IP:", UDP_IP ) print( "UDP target port:", UDP_PORT ) print( "message:", MESSAGE ) sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.connect(UDP_IP,UDP_PORT)