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
@@ -141,11 +142,9 @@ public INetworkStreamDriverConstructor DriverConstructor
141
142
[SerializeField]
142
143
privateProtocolTypem_ProtocolType;
143
144
145
+
#if UTP_TRANSPORT_2_0_ABOVE
144
146
[Tooltip("Per default the client/server will communicate over UDP. Set to true to communicate with WebSocket.")]
145
147
[SerializeField]
146
-
#if !UTP_TRANSPORT_2_0_ABOVE
147
-
[HideInInspector]
148
-
#endif
149
148
privateboolm_UseWebSockets=false;
150
149
151
150
publicboolUseWebSockets
@@ -159,15 +158,13 @@ public bool UseWebSockets
159
158
/// </summary>
160
159
[Tooltip("Per default the client/server communication will not be encrypted. Select true to enable DTLS for UDP and TLS for Websocket.")]
161
160
[SerializeField]
162
-
#if !UTP_TRANSPORT_2_0_ABOVE
163
-
[HideInInspector]
164
-
#endif
165
161
privateboolm_UseEncryption=false;
166
162
publicboolUseEncryption
167
163
{
168
164
get=>m_UseEncryption;
169
165
set=>m_UseEncryption=value;
170
166
}
167
+
#endif
171
168
172
169
[Tooltip("The maximum amount of packets that can be in the internal send/receive queues. Basically this is how many packets can be sent/received in a single update/frame.")]
173
170
[SerializeField]
@@ -181,11 +178,12 @@ public int MaxPacketQueueSize
181
178
set=>m_MaxPacketQueueSize=value;
182
179
}
183
180
184
-
[Tooltip("The maximum size of an unreliable payload that can be handled by the transport.")]
181
+
[Tooltip("The maximum size of an unreliable payload that can be handled by the transport. The memory for MaxPayloadSize is allocated once per connection and is released when the connection is closed.")]
185
182
[SerializeField]
186
183
privateintm_MaxPayloadSize=InitialMaxPayloadSize;
187
184
188
185
/// <summary>The maximum size of an unreliable payload that can be handled by the transport.</summary>
186
+
/// <remarks>The memory for MaxPayloadSize is allocated once per connection and is released when the connection is closed.</remarks>
189
187
publicintMaxPayloadSize
190
188
{
191
189
get=>m_MaxPayloadSize;
@@ -288,19 +286,25 @@ public struct ConnectionAddressData
0 commit comments