Click or drag to resize

UDPServerListen Method

Starts the server by opening a UDP socket listening on the given port. You can optionally specify a bind_address to only listen for packets sent to that address. See also Listen(Int32, String, Int32).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error Listen(
	ushort port,
	string bindAddress = "*"
)

Parameters

port
Type: SystemUInt16

[Missing <param name="port"/> documentation for "M:Godot.UDPServer.Listen(System.UInt16,System.String)"]

bindAddress (Optional)
Type: SystemString

[Missing <param name="bindAddress"/> documentation for "M:Godot.UDPServer.Listen(System.UInt16,System.String)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.UDPServer.Listen(System.UInt16,System.String)"]

See Also