Indicates whether the UPD protocol is available or not in the current runtime.

Namespace: Sfs2X
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public bool UdpAvailable { get; }

Property Value

Type: Boolean

Remarks

UPD protocol is always available and this property always returns true, unless websocket connection is used.

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