-
Notifications
You must be signed in to change notification settings - Fork 1
TCP IP connection
Andrey edited this page Dec 30, 2021
·
5 revisions
To make it possible to publish messages with Blazing Fast performance, a TCP/IP connection is introduced.
- u8: PacketType
- payload: payload - according to the packet_type;
- Direction: From Client to Server
- Payload is empty
- Direction: From Server to Client
- Payload is empty
-
Direction: From Client to Server
-
Payload structure:
- Name: PascalString - of Name of the application which is making a connection. MyServiceBus Library version is inside this Feel; Ex: MyApp;1.0.0
- ProtocolVersion: i32 - Global Version of the Client. Not Used yet. Reserved...
Each Packet by default has a version=1. If we are doing a breaking change of the payload - we increase the version of the packet. This packet is sent first one after the connection is established
- Direction: From Client to Server
- Payload structure
- Len: u8 - the number of packets we are upgrading versions:
- Len times sequence of
- packetId: u8;
- packetVersion: i32