Click or drag to resize

UdpSocketOpenAsync Method (Boolean, String, Int32, NotifyDataChangedEventHandler)

Opens a UDP connection.

Namespace:  Demo3D.Net.Protocols
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static Task<Client<IPacketIOService>> OpenAsync(
	bool sync,
	string host,
	int port,
	NotifyDataChangedEventHandler dataChangedHandler
)

Parameters

sync
Type: SystemBoolean
If true, the Task returned is guaranteed to be complete.
host
Type: SystemString
The host to connect to.
port
Type: SystemInt32
The port to connect to.
dataChangedHandler
Type: Demo3D.NetNotifyDataChangedEventHandler
Data received handler.

Return Value

Type: TaskClientIPacketIOService
A new UDP client.
See Also