IServerTransportAcceptConnectionAsync Method
Waits for a new connection and return the connection
Namespace: ARSoft.Tools.Net.DnsAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
Task<IServerConnection?> AcceptConnectionAsync(
CancellationToken token = default
)
Function AcceptConnectionAsync (
Optional token As CancellationToken = Nothing
) As Task(Of IServerConnection)
Task<IServerConnection^>^ AcceptConnectionAsync(
CancellationToken token = CancellationToken()
)
abstract AcceptConnectionAsync :
?token : CancellationToken
(* Defaults:
let _token = defaultArg token new CancellationToken()
*)
-> Task<IServerConnection>
- token CancellationToken (Optional)
- The token to monitor cancellation requests
TaskIServerConnectionA new connection to a client or null, if no connection could not be established