SmartFoxUdpAvailable Property |
Indicates whether the UPD protocol is available or not in the current runtime.
Namespace:
Sfs2X
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public bool UdpAvailable { get; }
Property Value
Type:
BooleanRemarks
UPD protocol is always available, unless websocket connection is used or http fallback (BlueBox) is activated in case a regular socket connection can't be established.
Using the UDP protocol in an application requires that a handshake is performed between the client and the server.
By default this is NOT done by the SmartFoxServer 2X API, to avoid allocating resources that might never be used.
In order to activate the UDP support, the initUDP() method must be invoked explicitly.
See Also