def forward()

in resources/code/my-first-enclave/cryptographic-attestation/traffic_forwarder.py [0:0]


def forward(source, destination):
    string = ' '
    while string:
        string = source.recv(1024)
        if string:

            destination.sendall(string)
        else:
            source.shutdown(socket.SHUT_RD)
            destination.shutdown(socket.SHUT_WR)