SetSocketOption()

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)

Arguments

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.

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)

Arguments

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.

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)

Arguments

ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe name of the option that must be updated.
optionValueboolThe value that must be set to the specified option.

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)

Arguments

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