Lines Matching refs:sopt
245 int sopt;
246 if (TranslateOption(opt, &slevel, &sopt) == -1)
249 int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen);
260 int sopt;
261 if (TranslateOption(opt, &slevel, &sopt) == -1)
268 return ::setsockopt(s_, slevel, sopt, (SockOptArg)&value, sizeof(value));
475 static int TranslateOption(Option opt, int* slevel, int* sopt) {
480 *sopt = IP_DONTFRAGMENT;
487 *sopt = IP_MTU_DISCOVER;
492 *sopt = SO_RCVBUF;
496 *sopt = SO_SNDBUF;
500 *sopt = TCP_NODELAY;