DatagramSocketMessageReceivedEventArgs.RemotePort | remotePort property

Applies to Windows and Windows Phone

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

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

DLL

Windows.Networking.dll

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:
© 2014 Microsoft