in resources/code/my-first-enclave/secure-local-channel/client.py [0:0]
def connect(self, endpoint):
# Connect to the remote endpoint with CID and PORT specified.
try:
self.sock = socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM)
self.sock.settimeout(self.conn_timeout)
self.sock.connect(endpoint)
except ConnectionResetError as e:
print("Caught error ", str(e.strerror)," ",str(e.errno))