How can I set the socket buffer size for a UNIX socket file descriptor in C? I understand setsockopt is probably the system call involved... Can anyone give an example of how to use it, the one's I have found do not explain how to set the buffer size?
On Ubuntu 14.04 Linux check out man 7 socket
, and specifically look at SO_RCVBUF
and SO_SNDBUF
.