Lines Matching defs:socket
16 import socket
271 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
295 # Create a listening socket to receive the pings. We use UDP which should
297 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
399 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
428 # Create a listening socket to receive the packets. We use UDP which should
430 with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock: