Click or drag to resize

UdpSocketOpen Method (String, Int32, Boolean)

Opens a UDP connection.

Namespace:  Demo3D.Net.Protocols
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
public static Client<IPacketIOService> Open(
	string host,
	int port,
	bool openConnection = true
)

Parameters

host
Type: SystemString
The host to connect to.
port
Type: SystemInt32
The port to connect to.
openConnection (Optional)
Type: SystemBoolean
False to return the socket without opening the connection.

Return Value

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