Lines Matching refs:slevel
396 int slevel;
398 if (TranslateOption(opt, &slevel, &sopt) == -1)
403 return ::getsockopt(socket_, slevel, sopt, p, &optlen);
407 int slevel;
409 if (TranslateOption(opt, &slevel, &sopt) == -1)
413 return ::setsockopt(socket_, slevel, sopt, p, sizeof(value));
572 int Win32Socket::TranslateOption(Option opt, int* slevel, int* sopt) {
575 *slevel = IPPROTO_IP;
579 *slevel = SOL_SOCKET;
583 *slevel = SOL_SOCKET;
587 *slevel = IPPROTO_TCP;