A library to use
Protobuffer has two C # implementations, of which the Protobuffer-csharp version is more suitable for cross-language development, and this version mimics the Java implementation; On iOS, we want to use the Lite version, and we need to change the code and drop the Pluginregistry function, otherwise it cannot be used on iOS, the iOS platform mono only supports AOT.
The Protobuffer-csharp code after castration:
To be continued (subsequent provision)
Two protocol generation process implementation
Using scripts to automatically generate protocol code for Java and C # versions
Linking to clients using SVN external
Three-client network processing
Network streams are divided into two types:
request response 形式push 形式
Using the Requese to send the response form message;
Use the global listener to process the push type message.
Sample client code:
链接: http://pan.baidu.com/s/1mgtDiGw 密码: 533o
Using Protobuffer as the implementation and process of network communication Packet Protocol in Unity