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

◆ SetIPv6MulticastOption()

static SocketError System.Net.Sockets.SocketPal.SetIPv6MulticastOption ( SafeSocketHandle handle,
SocketOptionName optionName,
IPv6MulticastOption optionValue )
inlinestatic

Definition at line 548 of file SocketPal.cs.

549 {
550 global::Interop.Winsock.IPv6MulticastRequest mreq = default(global::Interop.Winsock.IPv6MulticastRequest);
551 mreq.MulticastAddress = optionValue.Group.GetAddressBytes();
552 mreq.InterfaceIndex = (int)optionValue.InterfaceIndex;
553 SocketError socketError = global::Interop.Winsock.setsockopt(handle, SocketOptionLevel.IPv6, optionName, ref mreq, global::Interop.Winsock.IPv6MulticastRequest.Size);
554 if (socketError != SocketError.SocketError)
555 {
556 return SocketError.Success;
557 }
558 return GetLastSocketError();
559 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

References System.Net.Sockets.SocketPal.GetLastSocketError(), and System.handle.

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