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

◆ Get() [2/2]

static SocketError System.Net.Sockets.IOControlKeepAlive.Get ( SafeSocketHandle handle,
SocketOptionName optionName,
byte[] optionValueSeconds,
ref int optionLength )
inlinestatic

Definition at line 20 of file IOControlKeepAlive.cs.

21 {
22 if (optionValueSeconds == null || !BitConverter.TryWriteBytes(optionValueSeconds.AsSpan(), Get(handle, optionName)))
23 {
24 return SocketError.Fault;
25 }
26 optionLength = optionValueSeconds.Length;
27 return SocketError.Success;
28 }
static SocketError Get(SafeSocketHandle handle, SocketOptionName optionName, byte[] optionValueSeconds, ref int optionLength)

References System.Net.Sockets.IOControlKeepAlive.Get(), System.handle, and System.BitConverter.TryWriteBytes().

Referenced by System.Net.Sockets.IOControlKeepAlive.Get(), System.Net.Sockets.SocketPal.GetSockOpt(), and System.Net.Sockets.SocketPal.GetSockOpt().