in vsock_sample/py/vsock-sample.py [0:0]
def send_data(self, data):
"""Send data to a renote endpoint"""
while True:
(to_client, (remote_cid, remote_port)) = self.sock.accept()
to_client.sendall(data)
to_client.close()