python+soket實現UDP協議的局域網廣播程序

# udp_gb_server.py '''服務端(UDP協議局域網廣播)''' import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) PORT = 1060 network = '<broadcas
相關文章
相關標籤/搜索