Click or drag to resize

UdpSocketOpenAsync(Boolean, String, Int32, NotifyDataChangedEventHandler) Method

Opens a UDP connection.

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

Parameters

sync  Boolean
If true, the Task returned is guaranteed to be complete.
host  String
The host to connect to.
port  Int32
The port to connect to.
dataChangedHandler  NotifyDataChangedEventHandler
Data received handler.

Return Value

TaskClientIPacketIOService
A new UDP client.
See Also