MCPcopy Index your code
hub / github.com/RustPython/RustPython / server

Method server

Lib/test/test_asyncio/test_ssl.py:309–322  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

307 client_sslctx = self._create_client_ssl_context()
308
309 def server(sock):
310 sock.starttls(
311 sslctx,
312 server_side=True)
313
314 data = sock.recv_all(len(A_DATA))
315 self.assertEqual(data, A_DATA)
316 sock.send(b'OK')
317
318 data = sock.recv_all(len(B_DATA))
319 self.assertEqual(data, B_DATA)
320 sock.send(b'SPAM')
321
322 sock.close()
323
324 async def client(addr):
325 extras = {}

Callers

nothing calls this directly

Calls 15

lenFunction · 0.85
wrap_bioMethod · 0.80
wrap_socketMethod · 0.80
starttlsMethod · 0.45
recv_allMethod · 0.45
assertEqualMethod · 0.45
sendMethod · 0.45
closeMethod · 0.45
connectMethod · 0.45
recvMethod · 0.45
dupMethod · 0.45

Tested by

no test coverage detected