TcpListener
TcpListener(Int32)
TcpListener(IPEndPoint)
TcpListener(IPAddress, Int32)
~TcpListener()
Active
ExclusiveAddressUse
LocalEndpoint
Server
AcceptSocket()
AcceptSocketAsync()
AcceptSocketAsync(CancellationToken)
AcceptTcpClient()
AcceptTcpClientAsync()
AcceptTcpClientAsync(CancellationToken)
AllowNatTraversal(Boolean)
BeginAcceptSocket(AsyncCallback, Object)
BeginAcceptTcpClient(AsyncCallback, Object)
Create(Int32)
Dispose()
EndAcceptSocket(IAsyncResult)
EndAcceptTcpClient(IAsyncResult)
Pending()
Start()
Start(Int32)
Stop()
net9.0
namespace System.Net.Sockets
{
public class TcpListener : IDisposable
{
[SupportedOSPlatform("windows")]
public void AllowNatTraversal(bool allowed);
}
}
| NetFx Compat Lab | 0.5 % Reference this API |
|---|---|
| nuget.org | 0.0 % Reference this API |
| .NET | 5.06.07.08.09.0 |
| .NET Core | 2.02.12.23.03.1 |
| .NET Framework | 4.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 2.02.1 |
Information specific to net9.0 | |
| Assembly | System.Net.Sockets , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a |
| Referencing | The API is automatically referenced. |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API