2 The LLVM Compiler Infrastructure
4 This file is distributed under the University of Illinois Open Source
5 License. See LICENSE.TXT for details.
7 Helper functions for working with sockets.
17 def recvall(sock, size):
20 this_result = sock.recv(size)
21 bytes.write(this_result)
22 size -= len(this_result)
23 return bytes.getvalue()