System::Net::Sockets::Socket::SetSocketOption method

Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, bool) method

Sets the specified socket option to the specified value.

void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe name of the option that must be updated.
optionValueboolThe value that must be set to the specified option.

See Also

Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, int32_t) method

Sets the specified socket option to the specified value.

void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int32_t optionValue)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe name of the option that must be updated.
optionValueint32_tThe value that must be set to the specified option.

See Also

Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, System::ArrayPtr<uint8_t>) method

Sets the specified socket option to the specified value.

void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, System::ArrayPtr<uint8_t> optionValue)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe name of the option that must be updated.
optionValueSystem::ArrayPtr<uint8_t>The value that must be set to the specified option.

See Also

Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, System::SharedPtr<Object>) method

Sets the specified socket option to the specified value.

void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, System::SharedPtr<Object> optionValue)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe name of the option that must be updated.
optionValueSystem::SharedPtr<Object>The value that must be set to the specified option.

See Also