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)
67
return
_serverSocket
!;
86
return _active ?
_serverSocket
!.LocalEndPoint! : _serverSocketEP;
94
return
_serverSocket
!= null ?
_serverSocket
.ExclusiveAddressUse : _exclusiveAddressUse;
103
if (
_serverSocket
!= null)
105
_serverSocket
.ExclusiveAddressUse = value;
119
if (
_serverSocket
!= null)
147
_serverSocket
!.Bind(_serverSocketEP);
150
_serverSocket
.Listen(backlog);
165
_serverSocket
?.Dispose();
183
return
_serverSocket
!.Poll(0, SelectMode.SelectRead);
194
if (OperatingSystem.IsWasi() &&
_serverSocket
!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI");
196
return
_serverSocket
!.Accept();
206
if (OperatingSystem.IsWasi() &&
_serverSocket
!.Blocking) throw new PlatformNotSupportedException("Only use with Socket.Blocking=false on WASI");
208
Socket acceptedSocket =
_serverSocket
!.Accept();
233
return
_serverSocket
!.AcceptAsync(cancellationToken);
272
=>
_serverSocket
!.SetIPProtectionLevel(allowed ? IPProtectionLevel.Unrestricted : IPProtectionLevel.EdgeRestricted);
280
_serverSocket
.ExclusiveAddressUse = true;