Renamed HandshakeBase.cs to HttpBase.cs

This commit is contained in:
sta 2014-07-14 16:27:37 +09:00
parent c840a2dc3d
commit f75b8fde86
5 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@ using WebSocketSharp.Net;
namespace WebSocketSharp namespace WebSocketSharp
{ {
internal class HandshakeRequest : HandshakeBase internal class HandshakeRequest : HttpBase
{ {
#region Private Fields #region Private Fields

View File

@ -33,7 +33,7 @@ using WebSocketSharp.Net;
namespace WebSocketSharp namespace WebSocketSharp
{ {
internal class HandshakeResponse : HandshakeBase internal class HandshakeResponse : HttpBase
{ {
#region Private Fields #region Private Fields

View File

@ -1,6 +1,6 @@
#region License #region License
/* /*
* HandshakeBase.cs * HttpBase.cs
* *
* The MIT License * The MIT License
* *
@ -33,7 +33,7 @@ using WebSocketSharp.Net;
namespace WebSocketSharp namespace WebSocketSharp
{ {
internal abstract class HandshakeBase internal abstract class HttpBase
{ {
#region Private Fields #region Private Fields
@ -56,7 +56,7 @@ namespace WebSocketSharp
#region Protected Constructors #region Protected Constructors
protected HandshakeBase (Version version, NameValueCollection headers) protected HttpBase (Version version, NameValueCollection headers)
{ {
_version = version; _version = version;
_headers = headers; _headers = headers;

View File

@ -151,7 +151,7 @@ namespace WebSocketSharp
#region Internal Methods #region Internal Methods
internal T ReadHandshake<T> (Func<string [], T> parser, int millisecondsTimeout) internal T ReadHandshake<T> (Func<string [], T> parser, int millisecondsTimeout)
where T : HandshakeBase where T : HttpBase
{ {
var timeout = false; var timeout = false;
var timer = new Timer ( var timer = new Timer (
@ -277,7 +277,7 @@ namespace WebSocketSharp
return Write (frame.ToByteArray ()); return Write (frame.ToByteArray ());
} }
public bool WriteHandshake (HandshakeBase handshake) public bool WriteHandshake (HttpBase handshake)
{ {
return Write (handshake.ToByteArray ()); return Write (handshake.ToByteArray ());
} }

View File

@ -113,7 +113,6 @@
<Compile Include="LogData.cs" /> <Compile Include="LogData.cs" />
<Compile Include="LogLevel.cs" /> <Compile Include="LogLevel.cs" />
<Compile Include="Logger.cs" /> <Compile Include="Logger.cs" />
<Compile Include="HandshakeBase.cs" />
<Compile Include="HandshakeRequest.cs" /> <Compile Include="HandshakeRequest.cs" />
<Compile Include="HandshakeResponse.cs" /> <Compile Include="HandshakeResponse.cs" />
<Compile Include="WebSocketState.cs" /> <Compile Include="WebSocketState.cs" />
@ -136,6 +135,7 @@
<Compile Include="Net\AuthenticationChallenge.cs" /> <Compile Include="Net\AuthenticationChallenge.cs" />
<Compile Include="Net\AuthenticationResponse.cs" /> <Compile Include="Net\AuthenticationResponse.cs" />
<Compile Include="Net\AuthenticationBase.cs" /> <Compile Include="Net\AuthenticationBase.cs" />
<Compile Include="HttpBase.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>