Refactored WebSocketFrame.cs

This commit is contained in:
sta
2014-09-24 14:37:11 +09:00
parent 14914787a6
commit c2e60b9d45
4 changed files with 36 additions and 58 deletions

View File

@@ -539,7 +539,7 @@ namespace WebSocketSharp.Server
return null;
}
return broadping (WebSocketFrame.EmptyUnmaskPingData, _waitTime);
return broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
}
/// <summary>

View File

@@ -114,7 +114,7 @@ namespace WebSocketSharp.Server
/// </value>
public IEnumerable<string> ActiveIDs {
get {
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingData, _waitTime))
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
if (res.Value)
yield return res.Key;
}
@@ -159,7 +159,7 @@ namespace WebSocketSharp.Server
/// </value>
public IEnumerable<string> InactiveIDs {
get {
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingData, _waitTime))
foreach (var res in Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime))
if (!res.Value)
yield return res.Key;
}
@@ -545,7 +545,7 @@ namespace WebSocketSharp.Server
return null;
}
return Broadping (WebSocketFrame.EmptyUnmaskPingData, _waitTime);
return Broadping (WebSocketFrame.EmptyUnmaskPingBytes, _waitTime);
}
/// <summary>