Lines Matching refs:client_conn
333 def interact_in_memory(client_conn, server_conn): argument
350 (client_conn, server_conn),
351 (server_conn, client_conn),
380 def handshake_in_memory(client_conn, server_conn): argument
385 client_conn.set_connect_state()
388 for conn in [client_conn, server_conn]:
394 interact_in_memory(client_conn, server_conn)
3500 client_conn = Connection(client_ctx, sock)
3501 client_conn.set_connect_state()
3502 return client_conn
3512 client_conn = self._client(None)
3522 assert interact_in_memory(client_conn, server_conn) is None
3528 assert server_conn.client_random() == client_conn.client_random()
3529 assert server_conn.server_random() == client_conn.server_random()
3531 assert client_conn.client_random() != client_conn.server_random()
3534 cekm = client_conn.export_keying_material(b"LABEL", 32)
3542 cekmc = client_conn.export_keying_material(b"LABEL", 32, b"CONTEXT")
3550 cekmt = client_conn.export_keying_material(b"test", 32, b"CONTEXT")
3559 assert interact_in_memory(client_conn, server_conn) == (
3560 client_conn,
3564 client_conn.write(important_message[::-1])
3565 assert interact_in_memory(client_conn, server_conn) == (
3580 server_conn, client_conn = loopback()
3583 client_conn.send(important_message)
3590 msg = client_conn.recv(1024)
3653 server_conn, client_conn = loopback()
3654 client_conn.sock_shutdown(SHUT_RDWR)