NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Socket.GetSockOpt

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;

Parameters

optionLevel
The level at which the option is defined. Can be either OptionLevelIP or OptionLevelTCP
optionName
The name of the option to get. See the SocketOption class for the valid options.

Return Value

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.

See Also

Socket Class | Socket Members | System.Net.Sockets Namespace