def METHOD_NAME(self):
    # Read the data submitted to the Log Server.
    while True:
        data = b""
        while True:
            bytes_read = c_int(0)
            buf = create_string_buffer(LOGBUFSIZE)
            success = KERNEL32.ReadFile(self.h_pipe, buf, sizeof(buf), byref(bytes_read), None)
            try:
                data += buf.raw[: bytes_read.value]
            except MemoryError:
                log.error("MemoryError just occurred")
                break
            if success or KERNEL32.GetLastError() != ERROR_MORE_DATA:
                break
        # got an entire message, send it off to the resultserver
        if data:
            self.resultserver_socket.sendall(data)