3.1.7.1 Construct Direct Format Name
This event MUST be generated with the following argument:
iVia: A URI, as specified in [RFC3986].
Return Values:
rFormatName: The constructed format name.
The protocol MUST construct a direct format name as specified in section 2.1.2 for [MS-MQMQ], as follows:
Initialize rFormat to "DIRECT=".
If the host section as defined in section 3.2.2 of [RFC3986], of the Via URI is localhost:
Append "OS:" to rFormat.
Otherwise:
If the host section of the Via URI is an IPv4 address in string format:
Append "TCP:" to rFormat.
Otherwise:
Append "OS:" to rFormat.
Append the host portion of the Via URI to rFormat.
Append "\" to rFormat.
Append the relative path of the URI as defined in section 3.3 of [RFC3986] to rFormat.
Set rFormatName to rFormat.