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

◆ GetRawSockOpt()

static unsafe SocketError System.Net.Sockets.SocketPal.GetRawSockOpt ( SafeSocketHandle handle,
int optionLevel,
int optionName,
Span< byte > optionValue,
ref int optionLength )
inlinestatic

Definition at line 614 of file SocketPal.cs.

615 {
617 {
618 SocketError socketError = global::Interop.Winsock.getsockopt(handle, (SocketOptionLevel)optionLevel, (SocketOptionName)optionName, optionValue2, ref optionLength);
619 if (socketError != SocketError.SocketError)
620 {
621 return SocketError.Success;
622 }
623 return GetLastSocketError();
624 }
625 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

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

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