Recommend a Socket Layer protocol application components

SDDS(Stream Data Dynamic Structure)

Dynamic packet stream data processing structure

 

    - Application Layer protocol binary encoding and decoding common components

    - generic component formatted binary stream encoding and decoding.

 

}

 

===========

Why SDDS?

===========

 

When we use WorkerMan or write Swoole

TCP or UDP communications applications based on binary, WorkerMan or Swoole transceiver resolved only binary data packet. Typically, for different application layer protocols, such as, JT808, ModBus, we are need to write different data packet encoding and decoding procedures. And, for these procedures, because of the variety of complex algorithms and protocols, the program is almost no reusability.

Of course, you can also use google protocol Buffer to achieve encoding and decoding, but this practice has changed the structure of the data packets, and some special hardware or protocol is not easy to use protocol Buffer.

However, there is now SDDS, (Stream Data Dynamic Structure), using SDDS, as long as you use JSON definition of what Scheme, a number of additional extension function, then the application layer protocol encoding and decoding program is complete.

Thus, SDDS solve component-based application layer protocol and reusability issues. Not only enhance the speed of development, but also greatly enhance the reusability of the program, scalability and maintainability.

Briefly, the SDDS Socket Communications simplifies application development the most complex one, i.e., the development of an application protocol layer encoding and decoding procedures.

Use SDDS, and even cause you can support multiple sets of application-layer protocol in a set of applications.

Use SDDS, will greatly enhance communications php application development speed for different application binary communication protocol.

 

======================

SDDS and protobuf, kaitai different

======================

 

And, with the protocol Buffer is not the same, you can use immediately after the Scheme prepared. You do not need to compile, while not changing the transmission structure prescribed protocol. Therefore, it can be widely used IoT, JT808, ModBus, zigbee, OBD II binary applications and other protocols.

In the past, different application layer protocols require different codecs. Now, using the SDDS, all common codec by SDDS completed, all except that each have different definitions based on JSON Scheme.

SDDS also be used to read binary format files, such as, PDF, MP3 and so on. Kaitai similar open source is different, as no compilation SDDS, and, due to the SDDS using a dynamic data structure definition mode, therefore, the flow of processing any data can be defined by the Scheme. Using the SDDS, and simply define respective extension functions can Scheme, than kaitai convenient.

Therefore, not only the SDDS common application layer of binary encoding and decoding procedures, but also for simple and easy assembly formatted binary data stream encoding and decoding.

 

All in all, SDDS as a binary communication protocol layer application development and fast reading and writing binary format rapid development solution has the following advantages:

1, SDDS can be widely applied to development of various application layer protocol Socket binary communication server applications, including but not limited to industrial automation, networking and other application protocols, such as, modbus, zigbee, jt808 like.

2, easy to use, development efficiency improved significantly.

3, dynamic structure, the process is completely defined by the codec Scheme.

4, without compiling. Scheme-write with. Easy to modify and extend the program.

5, SDDS applied not only for communication, but also can be used to read and write other binary format stream data.

 

About SDDS details, see:

https://github.com/byteferry/sdds

The SDDS php components, see:

https://github.com/byteferry/sdds_php

 

Guess you like

Origin bardo.iteye.com/blog/2441657