Changed IsKeepAlive to IsAlive in WebSocket.cs

This commit is contained in:
sta
2012-09-05 17:11:27 +09:00
parent 85ef38084d
commit 022368dabb
19 changed files with 13 additions and 24 deletions

View File

@@ -84,11 +84,11 @@ namespace WebSocketSharp.Server {
}
public WebSocketServer(int port)
: this("/", port)
: this(port, "/")
{
}
public WebSocketServer(string absPath, int port)
public WebSocketServer(int port, string absPath)
{
_uri = new Uri(absPath, UriKind.Relative);

View File

@@ -153,35 +153,29 @@ namespace WebSocketSharp
#region Properties
public string BinaryType
{
public string BinaryType {
get { return _binaryType; }
}
public ulong BufferedAmount
{
get
{
public ulong BufferedAmount {
get {
ulong bufferedAmount = 0;
lock (_unTransmittedBuffer.SyncRoot)
{
foreach (WsFrame frame in _unTransmittedBuffer)
{
bufferedAmount += frame.PayloadLength;
}
}
return bufferedAmount;
}
}
public string Extensions
{
public string Extensions {
get { return _extensions; }
}
public bool IsKeepAlive {
public bool IsAlive {
get {
if (_readyState != WsState.OPEN)
return false;
@@ -196,17 +190,14 @@ namespace WebSocketSharp
}
}
public string Protocol
{
public string Protocol {
get { return _protocol; }
}
public WsState ReadyState
{
public WsState ReadyState {
get { return _readyState; }
private set
{
private set {
_readyState = value;
switch (value)
@@ -224,13 +215,11 @@ namespace WebSocketSharp
}
}
public SynchronizedCollection<WsFrame> UnTransmittedBuffer
{
public SynchronizedCollection<WsFrame> UnTransmittedBuffer {
get { return _unTransmittedBuffer; }
}
public string Url
{
public string Url {
get { return _uri.ToString(); }
}

Binary file not shown.