瀏覽代碼

removed unused code

release/3.x.x
Eggers Jan 7 年之前
父節點
當前提交
285c70f24f
共有 2 個檔案被更改,包括 3 行新增11 行删除
  1. +3
    -6
      Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs
  2. +0
    -5
      Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs

+ 3
- 6
Frameworks/MQTTnet.NetFramework/Implementations/MqttTcpChannel.cs 查看文件

@@ -93,8 +93,10 @@ namespace MQTTnet.Implementations

private void CreateCommStreams( Socket socket, SslStream sslStream )
{
//cannot use this as default buffering prevents from receiving the first connect message
_rawStream = (Stream)sslStream ?? new NetworkStream( socket );

//cannot use this as default buffering prevents from receiving the first connect message
//need two streams otherwise read and write have to be synchronized
_sendStream = new BufferedStream( _rawStream, BufferConstants.Size );
_receiveStream = new BufferedStream( _rawStream, BufferConstants.Size );
}
@@ -114,10 +116,5 @@ namespace MQTTnet.Implementations

return certificates;
}

public int Peek()
{
return _socket.Available;
}
}
}

+ 0
- 5
Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs 查看文件

@@ -107,10 +107,5 @@ namespace MQTTnet.Implementations

return certificates;
}

public int Peek()
{
return _socket.Available;
}
}
}

Loading…
取消
儲存