API

TcpListener.AcceptTcpClientAsync

Accepts an incoming TCP connection asynchronously.

Formal Syntax & Structure

csharp syntaxcsharp
await listener.AcceptTcpClientAsync(token)

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.await listener.AcceptTcpClientAsync(token)
C# & .NET Reference