| 程序包 | 说明 |
|---|---|
| com.github.netty.protocol | |
| com.github.netty.springboot.server |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpServletProtocol
HttpServlet protocol registry
|
class |
MqttProtocol
Internet of things messaging protocol
|
class |
MysqlProtocol
Mysql Protocol Payload
mysql client will not send the first packet, the server will, after receiving the link, immediately return the authentication information
|-------------------------------------------------------------------------------
|Type | Name | Description
|-------------------------------------------------------------------------------
|int[3] | payload_length | Length of the payload.
|
class |
NRpcProtocol
Internal RPC protocol registry
ACK flag : (0=Don't need, 1=Need)
Request Packet (note: 1 = request type)
-+------8B--------+--1B--+--1B--+------4B------+-----4B-----+------1B--------+-----length-----+------1B-------+---length----+-----4B------+-------length-------------+
| header/version | type | ACK | total length | Request ID | service length | service name | method length | method name | data length | data |
| NRPC/010 | 1 | 1 | 55 | 1 | 8 | "/sys/user" | 7 | getUser | 24 | {"age":10,"name":"wang"} |
-+----------------+------+------+--------------+------------+----------------+----------------+---------------+-------------+-------------+--------------------------+
Response Packet (note: 2 = response type)
-+------8B--------+--1B--+--1B--+------4B------+-----4B-----+---2B---+--------1B------+--length--+---1B---+-----4B------+----------length----------+
| header/version | type | ACK | total length | Request ID | status | message length | message | encode | data length | data |
| NRPC/010 | 2 | 0 | 35 | 1 | 200 | 2 | ok | 1 | 24 | {"age":10,"name":"wang"} |
-+----------------+------+------+--------------+------------+--------+----------------+----------+--------+-------------+--------------------------+
-+------2B-------+--1B--+----1B----+-----8B-----+------1B-----+----------------dynamic---------------------+-------dynamic------------+
| packet length | type | ACK flag | version | Fields size | Fields | Body |
| 76 | 1 | 1 | NRPC/201 | 2 | 11requestMappingName6/hello10methodName8sayHello | {"age":10,"name":"wang"} |
-+---------------+------+----------+------------+-------------+--------------------------------------------+--------------------------+
|
class |
RtspProtocol
Real-time streaming media transfer protocol (commonly used for live streaming, video)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpServletProtocolSpringAdapter
HttpServlet protocol registry (spring adapter)
|
class |
NRpcProtocolSpringAdapter
Internal RPC protocol registry (spring adapter)
|
Copyright © 2021. All rights reserved.