odd error code on getsockopt()
Posted: Tue Aug 07, 2018 10:29 pm
Code: Select all
linger *lin;
socklen_t lin_sz = sizeof(linger);
lin = new linger;
rc = getsockopt(sock, SOL_SOCKET, SO_LINGER, lin, &lin_sz);
Any ideas what I'm doing wrong? And, what does too many references even mean?
Oh: sock is a successfully created/bound UDP socket. Communications on it works fine, as do several setsockopt() calls.
Thanks...