MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / setOption

Method setOption

MonaBase/sources/Socket.cpp:500–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected