in vsock_sample/py/vsock-sample.py [0:0]
def recv_data(self):
"""Receive data from a remote endpoint"""
while True:
data = self.sock.recv(1024).decode()
if not data:
break
print(data, end='', flush=True)
print()