• API Documentation
Show / Hide Table of Contents
  • Rssdp
    • AggregateSsdpDeviceLocator
    • CustomHttpHeader
    • CustomHttpHeadersCollection
    • DeviceAvailableEventArgs
    • DeviceEventArgs
    • DeviceNetworkType
    • DeviceNetworkTypeExtensions
    • DeviceUnavailableEventArgs
    • DiscoveredSsdpDevice
    • ExceptionExtensions
    • ISsdpLogger
    • NullLogger
    • ServiceEventArgs
    • SocketClosedException
    • SocketFactory
    • SsdpDevice
    • SsdpDeviceExtensions
    • SsdpDeviceIcon
    • SsdpDeviceLocator
    • SsdpDevicePropertiesCollection
    • SsdpDeviceProperty
    • SsdpDevicePublisher
    • SsdpEmbeddedDevice
    • SsdpRootDevice
    • SsdpService
    • SsdpStandardsMode
    • SsdpTraceLogger
  • Rssdp.Infrastructure
    • DisposableManagedObjectBase
    • HttpParserBase<T>
    • HttpRequestParser
    • HttpResponseParser
    • ISocketFactory
    • ISsdpCommunicationsServer
    • ISsdpDeviceLocator
    • ISsdpDevicePublisher
    • IUdpSocket
    • IUpnpDeviceValidator
    • ReceivedUdpData
    • RequestReceivedEventArgs
    • ResponseReceivedEventArgs
    • SsdpCommunicationsServer
    • SsdpConstants
    • SsdpDeviceLocatorBase
    • SsdpDevicePublisherBase
    • UdpEndPoint
    • Upnp10DeviceValidator

Class UdpEndPoint

Cross platform representation of a UDP end point, being an IP address (either IPv4 or IPv6) and a port.

Inheritance
System.Object
UdpEndPoint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public sealed class UdpEndPoint

Constructors

UdpEndPoint(String, Int32)

Full constructor.

Declaration
public UdpEndPoint(string ipAddress, int port)
Parameters
Type Name Description
System.String ipAddress

A string representation of the IP address.

System.Int32 port

The port number.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if ipAddress is null.

System.ArgumentOutOfRangeException

Thrown if port is not between 0 and 65535.

Properties

IPAddress

The IP Address of the end point.

Declaration
public string IPAddress { get; }
Property Value
Type Description
System.String
Remarks

Can be either IPv4 or IPv6, up to the code using this instance to determine which was provided.

Port

The port of the end point.

Declaration
public int Port { get; }
Property Value
Type Description
System.Int32

Methods

ToString()

Returns the IPAddress and Port values separated by a colon.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string containing IPAddress:Port.

Overrides
System.Object.ToString()
In This Article
Back to top Copyright (c) 2015 Troy Willmot