RemotePort | remotePort property

DatagramSocketMessageReceivedEventArgs.RemotePort | remotePort property

Gets the UDP port number of the remote sender of the datagram received on the DatagramSocket.

Syntax


var remotePort = datagramSocketMessageReceivedEventArgs.remotePort;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The UDP port number of the remote network destination when a message is received on a DatagramSocket.

Remarks

The DatagramSocketMessageReceivedEventArgs.RemotePort property gets the UDP port number of the remote sender when a datagram was received on a DatagramSocket. A message received event can only occur after a successful connect or bind operation on the DatagramSocket.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

BindServiceNameAsync
ConnectAsync
DatagramSocket
DatagramSocketInformation.LocalAddress
DatagramSocketInformation.LocalPort
DatagramSocketInformation.RemoteAddress
DatagramSocketInformation.RemotePort
DatagramSocketMessageReceivedEventArgs
DatagramSocketMessageReceivedEventArgs.LocalAddress
DatagramSocketMessageReceivedEventArgs.RemoteAddress

 

 

Show:
© 2016 Microsoft