System::Net::Sockets::Socket::GetSocketOption method

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)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.

ReturnValue

The value that corresponds to the specified option name.

See Also

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)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.
optionValueSystem::ArrayPtr<uint8_t>The output parameter where the corresponding value will be assigned.

See Also

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)
ParameterTypeDescription
optionLevelSocketOptionLevelThe socket option level.
optionNameSocketOptionNameThe option name.
optionLengthint32_tThe option length.

ReturnValue

The value that corresponds to the specified option name.

See Also