MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / setRawOption

Method setRawOption

base/poco/Net/src/SocketImpl.cpp:756–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754
755
756void SocketImpl::setRawOption(int level, int option, const void* value, poco_socklen_t length)
757{
758 if (_sockfd == POCO_INVALID_SOCKET) throw InvalidSocketException();
759
760 int rc = ::setsockopt(_sockfd, level, option, reinterpret_cast<const char*>(value), length);
761 if (rc == -1) error();
762}
763
764
765void SocketImpl::getOption(int level, int option, int& value)

Callers 2

joinGroupMethod · 0.80
leaveGroupMethod · 0.80

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected