Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SocketInformation.cs
Go to the documentation of this file.
1namespace System.Net.Sockets;
2
3public struct SocketInformation
4{
5 public byte[] ProtocolInformation { get; set; }
6
7 public SocketInformationOptions Options { get; set; }
8
9 internal void SetOption(SocketInformationOptions option, bool value)
10 {
11 if (value)
12 {
13 Options |= option;
14 }
15 else
16 {
17 Options &= ~option;
18 }
19 }
20
21 internal bool GetOption(SocketInformationOptions option)
22 {
23 return (Options & option) == option;
24 }
25}
void SetOption(SocketInformationOptions option, bool value)
bool GetOption(SocketInformationOptions option)