Realization of network transmission based on PROTOBUF Protocol (UP)
PROTOBUF full Name protocol buffers is a lightweight and efficient structured data storage format that can be used for structured data serialization and is ideal for data storage or RPC data interchange formats.
1. It can be used in communication protocol, data storage and other fields of the language-independent, platform-independent, extensible serialization structure data format.
2. The API is currently available in C + +, Java, Python, C # and many other languages.
3. Protobuf is the Google Open source serialization and deserialization tool, which is mainly used in the definition of the message structure of the online game. It performs better and more efficiently relative to XML files and JSON files,
4. In the website http://code.google.com/p/protobuf/downloads/list can download protobuf source code, its file format is the file with the extension of. Proto.
Because PROTOBUF does not support. Net3.5 and the following versions, if you want to use it in Unity3d, you need to use a third-party protobuf-net library.
Protobuf-net is also open source, the project address is as follows: Https://github.com/mgravell/protobuf-net
Inter-process communication in unity-using protobuf-net serialization and deserialization