UdpClientTransportConnectAsync Method

Creates a new connection to a server

Definition

Namespace: ARSoft.Tools.Net.Dns
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public Task<IClientConnection?> ConnectAsync(
	DnsClientEndpointInfo endpointInfo,
	int queryTimeout,
	CancellationToken token = default
)

Parameters

endpointInfo  DnsClientEndpointInfo
The endpoint to connect to
queryTimeout  Int32
The query timeout in milliseconds
token  CancellationToken  (Optional)
The token to monitor cancellation requests

Return Value

TaskIClientConnection
A connection to the specified server or null, if the connection could not be established

Implements

IClientTransportConnectAsync(DnsClientEndpointInfo, Int32, CancellationToken)

See Also