Show / Hide Table of Contents

Interface IDnsRawClient

Represents a client capable of accepting a contiguous region of memory, reading the query from it, and writing the answer back into it.

Namespace: Ae.Dns.Protocol
Assembly: Ae.Dns.Protocol.dll
Syntax
public interface IDnsRawClient : IDisposable

Methods

| Improve this Doc View Source

Query(Memory<Byte>, Int32, EndPoint, CancellationToken)

Reads the number of bytes specified from the buffer, and writes back an answer to the same buffer.

Declaration
Task<DnsRawClientResponse> Query(Memory<byte> buffer, int queryLength, EndPoint querySource, CancellationToken token = null)
Parameters
Type Name Description
Memory<Byte> buffer

The buffer to read the query from, and write the answer to.

Int32 queryLength

The length of the query in the buffer, in bytes.

EndPoint querySource

The source address of the query, for statistics.

CancellationToken token

The cancellation token to stop the operation.

Returns
Type Description
Task<DnsRawClientResponse>

The number of bytes written back into the buffer.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX