[Modify] Rename it
This commit is contained in:
parent
086b1717c0
commit
ee177afb7c
@ -551,7 +551,7 @@ namespace WebSocketSharp.Server
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
|
return broadping (WebSocketFrame.EmptyPingBytes, _waitTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -99,7 +99,7 @@ namespace WebSocketSharp.Server
|
|||||||
/// </value>
|
/// </value>
|
||||||
public IEnumerable<string> ActiveIDs {
|
public IEnumerable<string> ActiveIDs {
|
||||||
get {
|
get {
|
||||||
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
|
foreach (var res in Broadping (WebSocketFrame.EmptyPingBytes, _waitTime))
|
||||||
if (res.Value)
|
if (res.Value)
|
||||||
yield return res.Key;
|
yield return res.Key;
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ namespace WebSocketSharp.Server
|
|||||||
/// </value>
|
/// </value>
|
||||||
public IEnumerable<string> InactiveIDs {
|
public IEnumerable<string> InactiveIDs {
|
||||||
get {
|
get {
|
||||||
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
|
foreach (var res in Broadping (WebSocketFrame.EmptyPingBytes, _waitTime))
|
||||||
if (!res.Value)
|
if (!res.Value)
|
||||||
yield return res.Key;
|
yield return res.Key;
|
||||||
}
|
}
|
||||||
@ -558,7 +558,7 @@ namespace WebSocketSharp.Server
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
|
return Broadping (WebSocketFrame.EmptyPingBytes, _waitTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -2226,7 +2226,7 @@ namespace WebSocketSharp
|
|||||||
{
|
{
|
||||||
var bytes = _client
|
var bytes = _client
|
||||||
? WebSocketFrame.CreatePingFrame (true).ToArray ()
|
? WebSocketFrame.CreatePingFrame (true).ToArray ()
|
||||||
: WebSocketFrame.EmptyUnmaskPingBytes;
|
: WebSocketFrame.EmptyPingBytes;
|
||||||
|
|
||||||
return Ping (bytes, _waitTime);
|
return Ping (bytes, _waitTime);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,14 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
#region Internal Fields
|
#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
|
#endregion
|
||||||
|
|
||||||
@ -68,7 +75,7 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
static WebSocketFrame ()
|
static WebSocketFrame ()
|
||||||
{
|
{
|
||||||
EmptyUnmaskPingBytes = CreatePingFrame (false).ToArray ();
|
EmptyPingBytes = CreatePingFrame (false).ToArray ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user