Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetMulticastOpt()

MulticastOption System.Net.Sockets.Socket.GetMulticastOpt ( SocketOptionName optionName)
inlineprivate

Definition at line 3562 of file Socket.cs.

3563 {
3564 MulticastOption optionValue;
3565 SocketError multicastOption = SocketPal.GetMulticastOption(_handle, optionName, out optionValue);
3566 if (System.Net.NetEventSource.Log.IsEnabled())
3567 {
3568 System.Net.NetEventSource.Info(this, $"GetMulticastOption returns errorCode:{multicastOption}", "GetMulticastOpt");
3569 }
3570 if (multicastOption != 0)
3571 {
3573 }
3574 return optionValue;
3575 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SafeSocketHandle _handle
Definition Socket.cs:533
void UpdateStatusAfterSocketErrorAndThrowException(SocketError error, [CallerMemberName] string callerName=null)
Definition Socket.cs:3715

References System.Net.Sockets.Socket._handle, System.Net.Sockets.SocketPal.GetMulticastOption(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().

Referenced by System.Net.Sockets.Socket.GetSocketOption().