Table of Contents

Class Message

Namespace
Iot.Device.MulticastDns.Entities
Assembly
Iot.Device.MulticastDns.dll

The class whom represents a Multicast DNS message.

public class Message
Inheritance
Message
Derived

Constructors

Message()

Initializes a new instance of the Message class.

public Message()

Message(DnsHeaderFlags)

Initializes a new instance of the Message class.

public Message(DnsHeaderFlags flags)

Parameters

flags DnsHeaderFlags

The header flags for this message.

Message(byte[])

Initializes an instance of Message.

public Message(byte[] data)

Parameters

data byte[]

The byte[] containing a message.

Fields

_additionals

The list of Additional Resources in the message.

protected ArrayList _additionals

Field Value

ArrayList

_answers

The list of Answers in the message.

protected ArrayList _answers

Field Value

ArrayList

_questions

The list of Questions in the message.

protected ArrayList _questions

Field Value

ArrayList

_servers

The list of Servers in the message.

protected ArrayList _servers

Field Value

ArrayList

Methods

AddQuestion(Question)

Adds a Question to the message.

public void AddQuestion(Question question)

Parameters

question Question

The Question to add.

GetBytes()

Returns a byte[] representation of this message.

public byte[] GetBytes()

Returns

byte[]

A byte[] representation of this message.

GetQuestions()

Returns the Questions in this message.

public Question[] GetQuestions()

Returns

Question[]

An array of Questions.

GetResources()

Returns the Resources in this message.

public Resource[] GetResources()

Returns

Resource[]

An array of Resources.