5 writes to _serverSocket
System.Net.Sockets (5)
System\Net\Sockets\TCPListener.cs (5)
29_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 45_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 58_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 167_serverSocket = null; 276_serverSocket ??= new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
18 references to _serverSocket
System.Net.Sockets (18)
System\Net\Sockets\TCPListener.cs (18)
67return _serverSocket!; 86return _active ? _serverSocket!.LocalEndPoint! : _serverSocketEP; 94return _serverSocket != null ? _serverSocket.ExclusiveAddressUse : _exclusiveAddressUse; 103if (_serverSocket != null) 105_serverSocket.ExclusiveAddressUse = value; 119if (_serverSocket != null) 147_serverSocket!.Bind(_serverSocketEP); 150_serverSocket.Listen(backlog); 165_serverSocket?.Dispose(); 183return _serverSocket!.Poll(0, SelectMode.SelectRead); 194if (OperatingSystem.IsWasi() && _serverSocket!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI"); 196return _serverSocket!.Accept(); 206if (OperatingSystem.IsWasi() && _serverSocket!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI"); 208Socket acceptedSocket = _serverSocket!.Accept(); 233return _serverSocket!.AcceptAsync(cancellationToken); 272=> _serverSocket!.SetIPProtectionLevel(allowed ? IPProtectionLevel.Unrestricted : IPProtectionLevel.EdgeRestricted); 280_serverSocket.ExclusiveAddressUse = true;