Click or drag to resize

UdpSocketOpen Method (String, Int32, Flags)

Opens a UDP connection.

Namespace:  Demo3D.Net.Protocols
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static Client<IPacketIOService> Open(
	string host,
	int port,
	Flags flags = default
)

Parameters

host
Type: SystemString
The host to connect to.
port
Type: SystemInt32
The port to connect to.
flags (Optional)
Type: Demo3D.NetFlags
Connection flags.

Return Value

Type: ClientIPacketIOService
A new UDP client.
Remarks
Don't use blocking methods in Demo3D scripting. Consider using OpenAsync(Boolean, String, Int32, Flags) instead.
See Also