Skip to content

Commit 9a3c663

Browse files
committed
Fix a few words
1 parent 3ec3bf8 commit 9a3c663

24 files changed

+108
-108
lines changed

websocket-sharp/ByteOrder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#region MIT License
1+
#region License
22
/*
33
* ByteOrder.cs
44
*
55
* The MIT License
66
*
7-
* Copyright (c) 2012 sta.blockhead
7+
* Copyright (c) 2012-2013 sta.blockhead
88
*
99
* Permission is hereby granted, free of charge, to any person obtaining a copy
1010
* of this software and associated documentation files (the "Software"), to deal

websocket-sharp/CloseStatusCode.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* CloseStatusCode.cs
44
*
@@ -49,59 +49,59 @@ public enum CloseStatusCode : ushort
4949
/// <summary>
5050
/// Equivalent to close status 1000. Indicates a normal closure.
5151
/// </summary>
52-
NORMAL = 1000,
52+
NORMAL = 1000,
5353
/// <summary>
5454
/// Equivalent to close status 1001. Indicates that an endpoint is "going away".
5555
/// </summary>
56-
AWAY = 1001,
56+
AWAY = 1001,
5757
/// <summary>
5858
/// Equivalent to close status 1002. Indicates that an endpoint is terminating the connection
5959
/// due to a protocol error.
6060
/// </summary>
61-
PROTOCOL_ERROR = 1002,
61+
PROTOCOL_ERROR = 1002,
6262
/// <summary>
6363
/// Equivalent to close status 1003. Indicates that an endpoint is terminating the connection
6464
/// because it has received a type of data it cannot accept.
6565
/// </summary>
66-
INCORRECT_DATA = 1003,
66+
INCORRECT_DATA = 1003,
6767
/// <summary>
6868
/// Equivalent to close status 1004. Still undefined. Reserved value.
6969
/// </summary>
70-
UNDEFINED = 1004,
70+
UNDEFINED = 1004,
7171
/// <summary>
7272
/// Equivalent to close status 1005. Indicates that no status code was actually present. Reserved value.
7373
/// </summary>
74-
NO_STATUS_CODE = 1005,
74+
NO_STATUS_CODE = 1005,
7575
/// <summary>
7676
/// Equivalent to close status 1006. Indicates that the connection was closed abnormally. Reserved value.
7777
/// </summary>
78-
ABNORMAL = 1006,
78+
ABNORMAL = 1006,
7979
/// <summary>
8080
/// Equivalent to close status 1007. Indicates that an endpoint is terminating the connection
8181
/// because it has received data within a message that was not consistent with the type of the message.
8282
/// </summary>
83-
INCONSISTENT_DATA = 1007,
83+
INCONSISTENT_DATA = 1007,
8484
/// <summary>
8585
/// Equivalent to close status 1008. Indicates that an endpoint is terminating the connection
8686
/// because it has received a message that violates its policy.
8787
/// </summary>
88-
POLICY_VIOLATION = 1008,
88+
POLICY_VIOLATION = 1008,
8989
/// <summary>
9090
/// Equivalent to close status 1009. Indicates that an endpoint is terminating the connection
9191
/// because it has received a message that is too big for it to process.
9292
/// </summary>
93-
TOO_BIG = 1009,
93+
TOO_BIG = 1009,
9494
/// <summary>
9595
/// Equivalent to close status 1010. Indicates that an endpoint (client) is terminating the connection
9696
/// because it has expected the server to negotiate one or more extension, but the server didn't return
9797
/// them in the response message of the WebSocket handshake.
9898
/// </summary>
99-
IGNORE_EXTENSION = 1010,
99+
IGNORE_EXTENSION = 1010,
100100
/// <summary>
101101
/// Equivalent to close status 1011. Indicates that a server is terminating the connection because it encountered
102102
/// an unexpected condition that prevented it from fulfilling the request.
103103
/// </summary>
104-
SERVER_ERROR = 1011,
104+
SERVER_ERROR = 1011,
105105
/// <summary>
106106
/// Equivalent to close status 1015. Indicates that the connection was closed due to a failure to perform
107107
/// a TLS handshake. Reserved value.

websocket-sharp/ErrorEventArgs.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#region MIT License
1+
#region License
22
/*
33
* ErrorEventArgs.cs
44
*
55
* The MIT License
66
*
7-
* Copyright (c) 2012 sta.blockhead
7+
* Copyright (c) 2012-2013 sta.blockhead
88
*
99
* Permission is hereby granted, free of charge, to any person obtaining a copy
1010
* of this software and associated documentation files (the "Software"), to deal
@@ -39,7 +39,7 @@ namespace WebSocketSharp {
3939
/// </remarks>
4040
public class ErrorEventArgs : EventArgs
4141
{
42-
#region Constructor
42+
#region Internal Constructors
4343

4444
internal ErrorEventArgs(string message)
4545
{
@@ -48,7 +48,7 @@ internal ErrorEventArgs(string message)
4848

4949
#endregion
5050

51-
#region Property
51+
#region Public Properties
5252

5353
/// <summary>
5454
/// Gets the error message.

websocket-sharp/Fin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* Fin.cs
44
*
@@ -32,7 +32,7 @@ namespace WebSocketSharp {
3232

3333
internal enum Fin : byte
3434
{
35-
MORE = 0x0,
35+
MORE = 0x0,
3636
FINAL = 0x1
3737
}
3838
}

websocket-sharp/Handshake.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* Handshake.cs
44
*
@@ -35,13 +35,13 @@ namespace WebSocketSharp {
3535

3636
internal abstract class Handshake {
3737

38-
#region Field
38+
#region Protected Const Fields
3939

4040
protected const string _crlf = "\r\n";
4141

4242
#endregion
4343

44-
#region Constructor
44+
#region Protected Constructors
4545

4646
protected Handshake()
4747
{
@@ -51,14 +51,14 @@ protected Handshake()
5151

5252
#endregion
5353

54-
#region Properties
54+
#region Public Properties
5555

5656
public NameValueCollection Headers { get; internal set; }
5757
public Version ProtocolVersion { get; internal set; }
5858

5959
#endregion
6060

61-
#region Methods
61+
#region Public Methods
6262

6363
public void AddHeader(string name, string value)
6464
{

websocket-sharp/Mask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* Mask.cs
44
*
@@ -33,6 +33,6 @@ namespace WebSocketSharp {
3333
internal enum Mask : byte
3434
{
3535
UNMASK = 0x0,
36-
MASK = 0x1
36+
MASK = 0x1
3737
}
3838
}

websocket-sharp/Net/Security/SslStream.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#region MIT License
1+
#region License
22
/*
33
* SslStream.cs
44
*
55
* The MIT License
66
*
7-
* Copyright (c) 2012 sta.blockhead
7+
* Copyright (c) 2012-2013 sta.blockhead
88
*
99
* Permission is hereby granted, free of charge, to any person obtaining a copy
1010
* of this software and associated documentation files (the "Software"), to deal
@@ -34,7 +34,7 @@ namespace WebSocketSharp.Net.Security {
3434

3535
internal class SslStream : System.Net.Security.SslStream
3636
{
37-
#region Constructors
37+
#region Public Constructors
3838

3939
public SslStream(NetworkStream innerStream)
4040
: base(innerStream)
@@ -70,7 +70,7 @@ LocalCertificateSelectionCallback userCertificateSelectionCallback
7070

7171
#endregion
7272

73-
#region Property
73+
#region Public Properties
7474

7575
public bool DataAvailable {
7676
get {

websocket-sharp/Net/WebSockets/HttpListenerWebSocketContext.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* HttpListenerWebSocketContext.cs
44
*
@@ -40,15 +40,15 @@ namespace WebSocketSharp.Net.WebSockets {
4040
/// </remarks>
4141
public class HttpListenerWebSocketContext : WebSocketContext
4242
{
43-
#region Fields
43+
#region Private Fields
4444

4545
private HttpListenerContext _context;
4646
private WebSocket _websocket;
4747
private WsStream _wsStream;
4848

4949
#endregion
5050

51-
#region Constructor
51+
#region Internal Constructors
5252

5353
internal HttpListenerWebSocketContext(HttpListenerContext context)
5454
{
@@ -59,7 +59,7 @@ internal HttpListenerWebSocketContext(HttpListenerContext context)
5959

6060
#endregion
6161

62-
#region Internal Property
62+
#region Internal Properties
6363

6464
internal WsStream Stream {
6565
get {
@@ -290,7 +290,7 @@ public override WebSocket WebSocket {
290290

291291
#endregion
292292

293-
#region Internal Method
293+
#region Internal Methods
294294

295295
internal void Close()
296296
{

websocket-sharp/Net/WebSockets/TcpListenerWebSocketContext.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* TcpListenerWebSocketContext.cs
44
*
@@ -41,7 +41,7 @@ namespace WebSocketSharp.Net.WebSockets {
4141
/// </remarks>
4242
public class TcpListenerWebSocketContext : WebSocketContext
4343
{
44-
#region Fields
44+
#region Private Fields
4545

4646
private CookieCollection _cookies;
4747
private TcpClient _tcpClient;
@@ -52,7 +52,7 @@ public class TcpListenerWebSocketContext : WebSocketContext
5252

5353
#endregion
5454

55-
#region Constructor
55+
#region Internal Constructors
5656

5757
internal TcpListenerWebSocketContext(TcpClient tcpClient, bool secure)
5858
{
@@ -305,7 +305,7 @@ public override WebSocket WebSocket {
305305

306306
#endregion
307307

308-
#region Internal Method
308+
#region Internal Methods
309309

310310
internal void Close()
311311
{

websocket-sharp/Net/WebSockets/WebSocketContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region MIT License
1+
#region License
22
/*
33
* WebSocketContext.cs
44
*
@@ -41,7 +41,7 @@ namespace WebSocketSharp.Net.WebSockets {
4141
/// </remarks>
4242
public abstract class WebSocketContext {
4343

44-
#region Constructor
44+
#region Protected Constructors
4545

4646
/// <summary>
4747
/// Initializes a new instance of the <see cref="WebSocketSharp.Net.WebSockets.WebSocketContext"/> class.
@@ -52,7 +52,7 @@ protected WebSocketContext()
5252

5353
#endregion
5454

55-
#region Properties
55+
#region Public Properties
5656

5757
/// <summary>
5858
/// Gets the cookies used in the WebSocket opening handshake.

0 commit comments

Comments
 (0)