[Modify] Rename it
This commit is contained in:
parent
086b1717c0
commit
ee177afb7c
@ -551,7 +551,7 @@ namespace WebSocketSharp.Server
|
||||
return null;
|
||||
}
|
||||
|
||||
return broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
|
||||
return broadping (WebSocketFrame.EmptyPingBytes, _waitTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -99,7 +99,7 @@ namespace WebSocketSharp.Server
|
||||
/// </value>
|
||||
public IEnumerable<string> ActiveIDs {
|
||||
get {
|
||||
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
|
||||
foreach (var res in Broadping (WebSocketFrame.EmptyPingBytes, _waitTime))
|
||||
if (res.Value)
|
||||
yield return res.Key;
|
||||
}
|
||||
@ -144,7 +144,7 @@ namespace WebSocketSharp.Server
|
||||
/// </value>
|
||||
public IEnumerable<string> InactiveIDs {
|
||||
get {
|
||||
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
|
||||
foreach (var res in Broadping (WebSocketFrame.EmptyPingBytes, _waitTime))
|
||||
if (!res.Value)
|
||||
yield return res.Key;
|
||||
}
|
||||
@ -558,7 +558,7 @@ namespace WebSocketSharp.Server
|
||||
return null;
|
||||
}
|
||||
|
||||
return Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
|
||||
return Broadping (WebSocketFrame.EmptyPingBytes, _waitTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -2226,7 +2226,7 @@ namespace WebSocketSharp
|
||||
{
|
||||
var bytes = _client
|
||||
? WebSocketFrame.CreatePingFrame (true).ToArray ()
|
||||
: WebSocketFrame.EmptyUnmaskPingBytes;
|
||||
: WebSocketFrame.EmptyPingBytes;
|
||||
|
||||
return Ping (bytes, _waitTime);
|
||||
}
|
||||
|
@ -60,7 +60,14 @@ namespace WebSocketSharp
|
||||
|
||||
#region Internal Fields
|
||||
|
||||
internal static readonly byte[] EmptyUnmaskPingBytes;
|
||||
/// <summary>
|
||||
/// Represents the Ping frame without the payload data as an array of <see cref="byte"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The value of this field is created from an unmasked Ping frame, so it can only be used to
|
||||
/// send a Ping from a server.
|
||||
/// </remarks>
|
||||
internal static readonly byte[] EmptyPingBytes;
|
||||
|
||||
#endregion
|
||||
|
||||
@ -68,7 +75,7 @@ namespace WebSocketSharp
|
||||
|
||||
static WebSocketFrame ()
|
||||
{
|
||||
EmptyUnmaskPingBytes = CreatePingFrame (false).ToArray ();
|
||||
EmptyPingBytes = CreatePingFrame (false).ToArray ();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user