Python: Soket UDP
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)
| Penerbit | Taratsa |
|---|---|
| Tahun | 2015-11-27 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:e4ead05d-b52d-54b0-a837-9e53112aae64 |