Lines Matching refs:self
42 def __init__(self, path): argument
43 self._uds_path = path
44 self._done = False
45 self._socket = None
48 def path(self): argument
49 return self._uds_path
51 def start(self): argument
52 def process(self): argument
53 self._socket.listen(1)
54 self._process()
57 os.unlink(self._uds_path)
59 if os.path.exists(self._uds_path):
61 self._socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
62 self._socket.bind(self._uds_path)
63 self._thread = Thread(target=process, daemon=True, args=[self])
64 self._thread.start()
66 def stop(self): argument
67 self._done = True
68 self._socket.close()
70 def _process(self): argument
71 while self._done is False:
73 c, client_address = self._socket.accept()
86 self._done = True
88 self._done = True
94 def uds_faker(self, env: Env) -> Generator[UDSFaker, None, None]: argument
102 def test_11_01_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): argument
113 def test_11_02_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): argument
124 def test_11_03_unix_connect_quic(self, env: Env, httpd, uds_faker, repeat): argument