Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
WebSocketDeflateOptions.cs
Go to the documentation of this file.
1
namespace
System.Net.WebSockets
;
2
3
public
sealed
class
WebSocketDeflateOptions
4
{
5
private
int
_clientMaxWindowBits
= 15;
6
7
private
int
_serverMaxWindowBits
= 15;
8
9
public
int
ClientMaxWindowBits
10
{
11
get
12
{
13
return
_clientMaxWindowBits
;
14
}
15
set
16
{
17
if
(value < 9 || value > 15)
18
{
19
throw
new
ArgumentOutOfRangeException
(
"ClientMaxWindowBits"
,
value
,
System
.
SR
.
Format
(
System
.
SR
.
net_WebSockets_ArgumentOutOfRange
, 9, 15));
20
}
21
_clientMaxWindowBits
=
value
;
22
}
23
}
24
25
public
bool
ClientContextTakeover
{
get
;
set
; } =
true
;
26
27
28
public
int
ServerMaxWindowBits
29
{
30
get
31
{
32
return
_serverMaxWindowBits
;
33
}
34
set
35
{
36
if
(value < 9 || value > 15)
37
{
38
throw
new
ArgumentOutOfRangeException
(
"ServerMaxWindowBits"
,
value
,
System
.
SR
.
Format
(
System
.
SR
.
net_WebSockets_ArgumentOutOfRange
, 9, 15));
39
}
40
_serverMaxWindowBits
=
value
;
41
}
42
}
43
44
public
bool
ServerContextTakeover
{
get
;
set
; } =
true
;
45
46
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Net.WebSockets.WebSocketDeflateOptions._serverMaxWindowBits
int _serverMaxWindowBits
Definition
WebSocketDeflateOptions.cs:7
System.Net.WebSockets.WebSocketDeflateOptions.ServerContextTakeover
bool ServerContextTakeover
Definition
WebSocketDeflateOptions.cs:44
System.Net.WebSockets.WebSocketDeflateOptions.ClientContextTakeover
bool ClientContextTakeover
Definition
WebSocketDeflateOptions.cs:25
System.Net.WebSockets.WebSocketDeflateOptions.ServerMaxWindowBits
int ServerMaxWindowBits
Definition
WebSocketDeflateOptions.cs:29
System.Net.WebSockets.WebSocketDeflateOptions._clientMaxWindowBits
int _clientMaxWindowBits
Definition
WebSocketDeflateOptions.cs:5
System.Net.WebSockets.WebSocketDeflateOptions.ClientMaxWindowBits
int ClientMaxWindowBits
Definition
WebSocketDeflateOptions.cs:10
System.Net.WebSockets.WebSocketDeflateOptions
Definition
WebSocketDeflateOptions.cs:4
System.SR.net_WebSockets_ArgumentOutOfRange
static string net_WebSockets_ArgumentOutOfRange
Definition
SR.cs:64
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR
Definition
SR.cs:7
System.Net.WebSockets
Definition
HttpListenerWebSocketContext.cs:5
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
source
System.Net.WebSockets
System.Net.WebSockets
WebSocketDeflateOptions.cs
Generated by
1.10.0