NOW LOADING

MidiNetworkClientMatchCriteria


Describes how to locate the remote host a client should connect to
Namespace Windows.Devices.Midi2.Transports.Network
Type Name MidiNetworkClientMatchCriteria
Type WinRT Runtime Class
IDL MidiNetworkClientMatchCriteria.idl

Supplies either a discovered device id or a direct address. Used by MidiNetworkClientConnectConfig.

Constructors

Constructor Description
MidiNetworkClientMatchCriteria() Create empty criteria

Properties

Property Description
DeviceId The device id of a host discovered over mDNS, as reported by MidiNetworkAdvertisedHost.DeviceId
DirectHostNameOrIPAddress Host name or IP address of the remote host, for a direct connection
DirectPort UDP port of the remote host, for a direct connection

Methods

Method Description
GetConfigJson() Returns the JSON fragment this object produces, for writing to the configuration file

Remarks

Set DeviceId for a discovered host, or DirectHostNameOrIPAddress and DirectPort for a direct one. The choice determines how the service behaves when the host is unreachable: a discovered host is retried whenever it advertises again, whereas a direct address is tried once and then marked unavailable. See the namespace overview for the full table.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.