SetOptOn only works by chance, if it works at all (which it doesn't for me). It should look something like:
void SetOptOn(int level, int opt) { int on = 1; setsockopt(m_sockfd, level, opt, &on, sizeof(int)); }
Log in to post a comment.