| 498 | |
| 499 | template<typename Type> |
| 500 | void setOption(Exception& ex, int level, int option, const Type& value) { |
| 501 | ASSERT(_initialized); |
| 502 | NET_SOCKLEN length(sizeof(value)); |
| 503 | if (::setsockopt(_sockfd, level, option, reinterpret_cast<const char*>(&value), length) == -1) |
| 504 | Net::SetException(ex, Net::LastError()," (level=",level,", option=",option,", length=",length,")"); |
| 505 | } |
| 506 | void setOption(Exception& ex, int level, int option, int value) { setOption<int>(ex, level, option, value); } |
| 507 | |
| 508 |
nothing calls this directly
no outgoing calls
no test coverage detected