A publisher sends a SUBSCRIBE_OK control message for successful subscriptions.
SUBSCRIBE_OK
{
Type (i) = 0x4,
Length (i),
Subscribe ID (i),
Expires (i),
Group Order (8),
ContentExists (8),
[Largest Group ID (i)],
[Largest Object ID (i)],
Number of Parameters (i),
Subscribe Parameters (..) ...
}
-
Subscribe ID: Subscription Identifier as defined in Section 7.4.
-
Expires: Time in milliseconds after which the subscription is no longer valid. A value of 0 indicates that the subscription does not expire or expires at an unknown time. Expires is advisory and a subscription can end prior to the expiry time or last longer.
-
Group Order: Indicates the subscription will be delivered in Ascending (0x1) or Descending (0x2) order by group. See Section 5. Values of 0x0 and those larger than 0x2 are a protocol error.
-
ContentExists: 1 if an object has been published on this track, 0 if not. If 0, then the Largest Group ID and Largest Object ID fields will not be present. Any other value is a protocol error and MUST terminate the session with a Protocol Violation (Section 3.5).
-
Largest Group ID: The largest Group ID available for this track. This field is only present if ContentExists has a value of 1.
-
Largest Object ID: The largest Object ID available within the largest Group ID for this track. This field is only present if ContentExists has a value of 1.
-
Subscribe Parameters: The parameters are defined in Section 7.1.1.