GetSocketOption()

Socket::GetSocketOption(SocketOptionLevel, SocketOptionName) method

Returns the value that corresponds to the specified option name.

System::SharedPtr<Object> System::Net::Sockets::Socket::GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName)

Arguments

ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.

Return Value

The value that corresponds to the specified option name.

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

Gets the value that corresponds to the specified option name.

void System::Net::Sockets::Socket::GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, System::ArrayPtr<uint8_t> optionValue)

Arguments

ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.
optionValueSystem::ArrayPtr<uint8_t>The output parameter where the corresponding value will be assigned.

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

Returns the value that corresponds to the specified option name.

System::ArrayPtr<uint8_t> System::Net::Sockets::Socket::GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int32_t optionLength)

Arguments

ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.
optionLengthint32_tThe option length.

Return Value

The value that corresponds to the specified option name.

See Also