K
kid joe
Hi,
Do I need to retry writev() on a blocking Unix-domain SOCK_STREAM socket,
or will it always write out the exact number of bytes I asked for?
For example:
if (write(fd, (const char *) presp, resp_size) != resp_size)
{
warn("Writing %lu bytes failed\n", resp_size);
return;
}
this seems to work, but I want to know if it's "really OK" in terms of
ANSI Standards etc.
Do I need to retry writev() on a blocking Unix-domain SOCK_STREAM socket,
or will it always write out the exact number of bytes I asked for?
For example:
if (write(fd, (const char *) presp, resp_size) != resp_size)
{
warn("Writing %lu bytes failed\n", resp_size);
return;
}
this seems to work, but I want to know if it's "really OK" in terms of
ANSI Standards etc.