Skip to content
代码片段 群组 项目
未验证 提交 5a22c49f 编辑于 作者: github-actions[bot]'s avatar github-actions[bot] 提交者: GitHub
浏览文件

Sync shared code from runtime (#23430)

上级 a0744912
No related branches found
No related tags found
无相关合并请求
...@@ -14,13 +14,13 @@ namespace System.Net.Quic.Implementations.Mock ...@@ -14,13 +14,13 @@ namespace System.Net.Quic.Implementations.Mock
internal sealed class MockConnection : QuicConnectionProvider internal sealed class MockConnection : QuicConnectionProvider
{ {
private readonly bool _isClient; private readonly bool _isClient;
private bool _disposed = false; private bool _disposed;
private IPEndPoint? _remoteEndPoint; private IPEndPoint? _remoteEndPoint;
private IPEndPoint? _localEndPoint; private IPEndPoint? _localEndPoint;
private object _syncObject = new object(); private object _syncObject = new object();
private Socket? _socket = null; private Socket? _socket;
private IPEndPoint? _peerListenEndPoint = null; private IPEndPoint? _peerListenEndPoint;
private TcpListener? _inboundListener = null; private TcpListener? _inboundListener;
private long _nextOutboundBidirectionalStream; private long _nextOutboundBidirectionalStream;
private long _nextOutboundUnidirectionalStream; private long _nextOutboundUnidirectionalStream;
......
...@@ -13,7 +13,7 @@ namespace System.Net.Quic.Implementations.Mock ...@@ -13,7 +13,7 @@ namespace System.Net.Quic.Implementations.Mock
{ {
internal sealed class MockListener : QuicListenerProvider internal sealed class MockListener : QuicListenerProvider
{ {
private bool _disposed = false; private bool _disposed;
private SslServerAuthenticationOptions? _sslOptions; private SslServerAuthenticationOptions? _sslOptions;
private IPEndPoint _listenEndPoint; private IPEndPoint _listenEndPoint;
private TcpListener _tcpListener; private TcpListener _tcpListener;
......
...@@ -13,14 +13,14 @@ namespace System.Net.Quic.Implementations.Mock ...@@ -13,14 +13,14 @@ namespace System.Net.Quic.Implementations.Mock
{ {
internal sealed class MockStream : QuicStreamProvider internal sealed class MockStream : QuicStreamProvider
{ {
private bool _disposed = false; private bool _disposed;
private readonly long _streamId; private readonly long _streamId;
private bool _canRead; private bool _canRead;
private bool _canWrite; private bool _canWrite;
private MockConnection? _connection; private MockConnection? _connection;
private Socket? _socket = null; private Socket? _socket;
// Constructor for outbound streams // Constructor for outbound streams
internal MockStream(MockConnection connection, long streamId, bool bidirectional) internal MockStream(MockConnection connection, long streamId, bool bidirectional)
......
...@@ -6,7 +6,7 @@ namespace System.Net.Quic.Implementations.MsQuic.Internal ...@@ -6,7 +6,7 @@ namespace System.Net.Quic.Implementations.MsQuic.Internal
{ {
internal sealed class MsQuicSession : IDisposable internal sealed class MsQuicSession : IDisposable
{ {
private bool _disposed = false; private bool _disposed;
private IntPtr _nativeObjPtr; private IntPtr _nativeObjPtr;
private bool _opened; private bool _opened;
......
...@@ -61,7 +61,7 @@ namespace System.Net.Quic.Implementations.MsQuic ...@@ -61,7 +61,7 @@ namespace System.Net.Quic.Implementations.MsQuic
// Used by the class to indicate that the stream is writable. // Used by the class to indicate that the stream is writable.
private readonly bool _canWrite; private readonly bool _canWrite;
private volatile bool _disposed = false; private volatile bool _disposed;
private List<QuicBuffer> _receiveQuicBuffers = new List<QuicBuffer>(); private List<QuicBuffer> _receiveQuicBuffers = new List<QuicBuffer>();
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册