I need to read from an AF_UNIX socket to a buffer using the function read from C, but I don\'t know the buffer size.
read
I think the best way is to read
you are correct, if you don't know the size of the input you can just read one byte each time and append it to a larger buffer.