Gets the value of a socket option.
[Visual Basic] Public Function GetSockOpt( _ ByVal optionLevel As Integer, _ ByVal optionName As Integer _ ) As Object [C#] public object GetSockOpt( int optionLevel, int optionName ); [C++] public: Object* GetSockOpt( int optionLevel, int optionName ); [JScript] public function GetSockOpt( optionLevel : int, optionName : int ) : Object;
The value of the option. When optionName is set to SoLinger the return value is an instance of LingerOption. When optionName is set to IpAddMembership or IpDropMembership, the return value is an instance of MulticastOption.
Socket Class | Socket Members | System.Net.Sockets Namespace