Port Property

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
Gets or sets the local port to bind to. Defaults to 0. Cannot be changed once NetPeer is initialized.

Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)

Syntax

C#
public int Port { get; set; }
Visual Basic
Public Property Port As Integer
	Get
	Set
Visual C++
public:
property int Port {
	int get ();
	void set (int value);
}

See Also