Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is a result message

Shulou Source: shulou.com Published: 2022-06-02 01:52:44 10月03日 Update

This article shows you what is the result message, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.

After the rtmp client sends a connect message, rtmp server sends a _ result message to the client, notifying the client of the connection status (success/fail). Let's talk about the _ result message in more detail.

1. Overview

As an old rule, let's first take a look at the grab packet of a _ result message.

As you can see, a _ result message consists of four parts, type identification and transaction ID,properties,response related information, all of which are encoded in AMF format. Let's look at them one by one:

two。 Detailed explanation

Type identification

A typical AMF combination of type + length + value, not to mention much, _ result represents the message type.

Transaction ID

TranscationID, encoded in AMF0 format, 0x00 for numeric format, followed by 8 bytes for ID, the ID is always 1 in response to connect messages.

Properties

You can see that the properties contains two Object types of data, one fmsVer represents the version information of the FMS server (in this case, FMS/3,0,1123), and the other capabilites represents the capacity, with a value of 31. There is no need to dwell on the organization format of Object object data in RTMP Body, but you can refer to the previous detailed explanation of connect messages.

Response related information

By looking at the grab file, we can see that there are many responses about connect connections, organized as object types. There is a level, in this case status, which means the status of the connection; code, which represents the code, can be understood as some kind of number, in this case NetConnection.Connect.Succes;description can be understood as a description of code, and here it is' Connection succeeded'. The combination of code and description indicates that the connection is successful; there is also an objectEncoding field indicating how object is encoded (AMF0 or AMF3). A value of 0 indicates that AMF0 encoding is used. The client receives _ result and gets the connection status as Connection succeeded. In this way, the establishment of the connection is basically complete, and then the flow-related operations can be carried out. What is the result message above? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Message type customer client format code status content skills data identity knowledge part concise successful and then concise one two code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info Redmi Microsoft vpn