Click or drag to resize

PacketPeerUDPSetDestAddress Method

Sets the destination address and port for sending packets and variables. A hostname will be resolved using DNS if needed.

Note: SetBroadcastEnabled(Boolean) must be enabled before sending packets to a broadcast address (e.g. 255.255.255.255).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error SetDestAddress(
	string host,
	int port
)

Parameters

host
Type: SystemString

[Missing <param name="host"/> documentation for "M:Godot.PacketPeerUDP.SetDestAddress(System.String,System.Int32)"]

port
Type: SystemInt32

[Missing <param name="port"/> documentation for "M:Godot.PacketPeerUDP.SetDestAddress(System.String,System.Int32)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.PacketPeerUDP.SetDestAddress(System.String,System.Int32)"]

See Also