Fix a few words

This commit is contained in:
sta
2013-05-07 02:19:31 +09:00
parent 3ec3bf8fc9
commit 9a3c6632de
24 changed files with 108 additions and 108 deletions

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* HttpRequestEventArgs.cs
*
@@ -41,17 +41,17 @@ namespace WebSocketSharp.Server {
/// </remarks>
public class HttpRequestEventArgs : EventArgs
{
#region Constructor
#region Internal Constructors
internal HttpRequestEventArgs(HttpListenerContext context)
{
Request = context.Request;
Request = context.Request;
Response = context.Response;
}
#endregion
#region Properties
#region Public Properties
/// <summary>
/// Gets the HTTP request objects sent from a client.

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* HttpServer.cs
*
@@ -59,7 +59,7 @@ namespace WebSocketSharp.Server {
/// </remarks>
public class HttpServer {
#region Fields
#region Private Fields
private bool _isWindows;
private HttpListener _listener;
@@ -70,7 +70,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Constructors
#region Public Constructors
/// <summary>
/// Initializes a new instance of the <see cref="HttpServer"/> class that listens for incoming requests
@@ -96,7 +96,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Properties
#region Public Properties
/// <summary>
/// Gets the port on which to listen for incoming requests.
@@ -139,7 +139,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Events
#region Public Events
/// <summary>
/// Occurs when the server receives an HTTP CONNECT request.

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* IServiceHost.cs
*

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* ServiceHostManager.cs
*
@@ -33,14 +33,14 @@ namespace WebSocketSharp.Server {
internal class ServiceHostManager {
#region Fields
#region Private Fields
private Dictionary<string, IServiceHost> _svcHosts;
private bool _sweeped;
#endregion
#region Constructor
#region Public Constructors
public ServiceHostManager()
{
@@ -50,7 +50,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Properties
#region Public Properties
public int Count {
get {

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* WebSocketServer.cs
*
@@ -44,7 +44,7 @@ namespace WebSocketSharp.Server {
/// </remarks>
public class WebSocketServer : WebSocketServerBase
{
#region Field
#region Private Fields
private ServiceHostManager _svcHosts;
@@ -142,7 +142,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Properties
#region Public Properties
/// <summary>
/// Gets the collection of paths associated with the every WebSocket services that the server provides.
@@ -179,7 +179,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Private Method
#region Private Methods
private void init()
{
@@ -188,7 +188,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Protected Method
#region Protected Methods
/// <summary>
/// Accepts a WebSocket connection request.

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* WebSocketServerBase.cs
*
@@ -43,7 +43,7 @@ namespace WebSocketSharp.Server {
/// </remarks>
public abstract class WebSocketServerBase {
#region Fields
#region Private Fields
private Thread _receiveRequestThread;
private IPAddress _address;
@@ -55,7 +55,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Constructors
#region Protected Constructors
/// <summary>
/// Initializes a new instance of the <see cref="WebSocketServerBase"/> class.
@@ -153,7 +153,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Protected Property
#region Protected Properties
/// <summary>
/// Gets or sets the WebSocket URL on which to listen for incoming connection attempts.
@@ -226,7 +226,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Event
#region Public Events
/// <summary>
/// Occurs when the server gets an error.

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* WebSocketService.cs
*
@@ -51,7 +51,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Public Constructor
#region Public Constructors
/// <summary>
/// Initializes a new instance of the <see cref="WebSocketService"/> class.

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* WebSocketServiceHost.cs
*
@@ -48,13 +48,13 @@ namespace WebSocketSharp.Server {
public class WebSocketServiceHost<T> : WebSocketServerBase, IServiceHost
where T : WebSocketService, new()
{
#region Field
#region Private Fields
private WebSocketServiceManager _sessions;
#endregion
#region Internal Constructor
#region Internal Constructors
internal WebSocketServiceHost()
{
@@ -180,7 +180,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Properties
#region Public Properties
/// <summary>
/// Gets or sets a value indicating whether the server cleans up the inactive clients periodically.
@@ -217,7 +217,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Private Method
#region Private Methods
private void init()
{
@@ -226,24 +226,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Explicit Interface Implementation
/// <summary>
/// Binds the specified <see cref="WebSocketContext"/> to a <see cref="WebSocketService"/> instance.
/// </summary>
/// <param name="context">
/// A <see cref="WebSocketContext"/> that contains the WebSocket connection request objects to bind.
/// </param>
void IServiceHost.BindWebSocket(WebSocketContext context)
{
T service = new T();
service.Bind(context, _sessions);
service.Start();
}
#endregion
#region Protected Method
#region Protected Methods
/// <summary>
/// Accepts a WebSocket connection request.
@@ -307,5 +290,22 @@ namespace WebSocketSharp.Server {
}
#endregion
#region Explicit Interface Implementation
/// <summary>
/// Binds the specified <see cref="WebSocketContext"/> to a <see cref="WebSocketService"/> instance.
/// </summary>
/// <param name="context">
/// A <see cref="WebSocketContext"/> that contains the WebSocket connection request objects to bind.
/// </param>
void IServiceHost.BindWebSocket(WebSocketContext context)
{
T service = new T();
service.Bind(context, _sessions);
service.Start();
}
#endregion
}
}

View File

@@ -1,4 +1,4 @@
#region MIT License
#region License
/*
* WebSocketServiceManager.cs
*
@@ -38,7 +38,7 @@ namespace WebSocketSharp.Server {
/// </summary>
public class WebSocketServiceManager {
#region Fields
#region Private Fields
private object _forSweep;
private volatile bool _isStopped;
@@ -49,7 +49,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Constructor
#region Internal Constructors
internal WebSocketServiceManager()
{
@@ -65,7 +65,7 @@ namespace WebSocketSharp.Server {
#endregion
#region Properties
#region Public Properties
/// <summary>
/// Gets the collection of IDs of active <see cref="WebSocketService"/> objects