You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Ping: there is a ping plugin you can used, but if you are used in unity3d because of the bug of mono, it will throw an error on .net2.0(.net 4.6 will be fine, also you can use unity's api to get ping time)
77
80
78
81
82
+
### Advanced
83
+
- If you are clear about socket, you also can use TcpSocket(UdpSocket) to achieve your logic, anyway the recommend is TcpConnection(UdpConnection).
84
+
- You can use API get socket and do extra logic, for example modify time out time
85
+
- You can use API get send and receive buffer, for example when disconnect should send all send buffer's data to server? or when reconnect how to process send buffer's data
86
+
- OnSocketReceive and OnReceive are diffrent, for example OnSocketReceive size is 100 byte, if user do nothing when uppack OnReceive size is 100. but when user do some zip/unzip(encription.etc) OnReceive size is not 100 anymore.
87
+
- You can add many different plugins based on TcpConnection(UdpConnection) to achieve different functions.
88
+
- There are a message register base class help user to quick register id and callback(based on reflection)
89
+
- Byte block buffer reuse block when some block is free.
90
+
- .etc
91
+
92
+
79
93
### Instructions
80
94
- Tcp
81
95
[Transmission Control Protocol](https://en.wikipedia.org/wiki/Transmission_Control_Protocol)
@@ -123,12 +137,7 @@ If use Udp connection shold define send and receive's buffer size.
123
137
- Bytes message
124
138
- Encription
125
139
126
-
### Advanced
127
-
- If you are clear about socket, you also can use TcpSocket(UdpSocket) to achieve your logic, anyway the recommend is TcpConnection(UdpConnection).
128
-
- You can add many different plugins based on TcpConnection(UdpConnection) to achieve different functions.
129
-
- There are a message register base class help user to quick register id and callback(based on reflection)
130
-
- Byte block buffer use linked list and reuse block when some block is free.
0 commit comments