I have the following code that is returning an error number of 22. I can't find out anywhere what 22 refers to, can someone point out where I might find out?
if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY,
(char *)&arg, sizeof(arg)) < 0) {
log.debug("unable to setsockopt TCP_NODELAY: %d", errorNumber());
return false;
}