Lines Matching refs:sock
357 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
358 sock.settimeout(3)
359 port = test_support.bind_port(sock)
362 args = (evt, cap, sock)
449 def __init__(self, sock=None):
450 asyncore.dispatcher.__init__(self, sock)
690 sock = socket.socket()
692 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
696 # if SO_REUSEADDR succeeded for sock we expect asyncore
706 sock.close()