This network library is based on Cppnetworklibrary (http://www.cnblogs.com/winter-yu/p/4688481.html) on the basis of some optimizations and adjustments.
The specific highlights are as follows:
1, support cross-platform, including mainstream windows,android,ios,linux and so on.
2, cross-language, client support C++,c#,java. The server currently only supports C + +.
3, the packet added encryption and compression function, the password will be dynamically randomly modified, rather than the use of a fixed password on both sides to ensure the transmission of data packets security.
4, the client supports peer-to message transmission without requiring the server to do any additional processing.
5, the server supports the cluster (theoretically the amount of concurrency associated with the number of cluster servers and the logical complexity of the servers), and the client between the cluster server can send packets to each other, there is no area service concept.
6, the serialization protocol is Google Protocol buffers, so different languages, different clients, can communicate with each other.
7, all packets and network events are through the event callback, concise and clear, without any network programming experience of programmers can quickly get started.
8, the service side rich log records, including critical crash information, connection quantity statistics, etc., convenient reference.
9, support real-to-peer connection, not through the server forwarding, direct connection (but the connection is successful with the target network access to the NAT device,
If both ends of the peer are symmetric NAT devices, the probability of success will be very low, but even if the connection fails, it will not affect the transmission of the data packets, because if the real connection fails, the server forwards the line will go.
C + + demo and library: Http://pan.baidu.com/s/1pLlERNl
C # Demo and library: Http://pan.baidu.com/s/1eSNQTBc
C + + implementation, supports cross-platform (Windows,android,ios), supports cross-language (C++,c#,java) network libraries