Represents a network endpoint as an abstract class. An endpoint is a combination of an IP address and a port number. This class serves as the base class for concrete endpoint types, such as IPEndPoint.
Syntax
public abstract class EndPoint
Remarks
The EndPoint class is used to represent a network address. Network applications use the EndPoint class to determine the destination of network traffic. For example, a UDP datagram or a TCP connection requires an EndPoint to specify the recipient or listener.
The EndPoint class is an abstract class. You cannot create an instance of EndPoint directly. Instead, you must create an instance of a derived class, such as IPEndPoint.
The Socket class uses EndPoint objects to establish connections, send and receive data.
Members
Properties
-
AddressFamily
System.Net.Sockets.AddressFamily
Gets the AddressFamily for the current EndPoint.
Methods
-
Create(System.Net.SocketAddress)
virtual EndPoint
Creates an EndPoint from a SocketAddress instance. This is an abstract method that must be implemented by derived classes.
-
Serialize()
virtual SocketAddress
Serializes an EndPoint into a SocketAddress instance. This is an abstract method that must be implemented by derived classes.
Inheritance Hierarchy
Derived Types
-
IPEndPoint
Represents a network endpoint as an IP address and a port number.
Requirements
Namespace: System.Net
Assembly: System (in System.dll)
Assembly File: System.dll