Click or drag to resize

UPNPDeviceAddPortMapping Method

Adds a port mapping to forward the given external port on this UPNPDevice for the given protocol to the local machine. See AddPortMapping(Int32, Int32, String, String, Int32).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int AddPortMapping(
	int port,
	int portInternal = 0,
	string desc = "",
	string proto = "UDP",
	int duration = 0
)

Parameters

port
Type: SystemInt32

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

portInternal (Optional)
Type: SystemInt32

[Missing <param name="portInternal"/> documentation for "M:Godot.UPNPDevice.AddPortMapping(System.Int32,System.Int32,System.String,System.String,System.Int32)"]

desc (Optional)
Type: SystemString

[Missing <param name="desc"/> documentation for "M:Godot.UPNPDevice.AddPortMapping(System.Int32,System.Int32,System.String,System.String,System.Int32)"]

proto (Optional)
Type: SystemString

[Missing <param name="proto"/> documentation for "M:Godot.UPNPDevice.AddPortMapping(System.Int32,System.Int32,System.String,System.String,System.Int32)"]

duration (Optional)
Type: SystemInt32

[Missing <param name="duration"/> documentation for "M:Godot.UPNPDevice.AddPortMapping(System.Int32,System.Int32,System.String,System.String,System.Int32)"]

Return Value

Type: Int32

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

See Also