Dart.Mail Namespace > Session Class : LocalEndPoint Property |
Public Property LocalEndPoint As IPEndPoint
Dim instance As Session Dim value As IPEndPoint instance.LocalEndPoint = value value = instance.LocalEndPoint
public IPEndPoint LocalEndPoint {get; set;}
public: __property IPEndPoint* get_LocalEndPoint(); public: __property void set_LocalEndPoint( IPEndPoint* value );
public: property IPEndPoint^ LocalEndPoint { IPEndPoint^ get(); void set ( IPEndPoint^ value); }
Use this property to control the use of IPv4/IPv6, the IP interface to bind to (for multi-homed hosts), and the port or port-range to use. Defaults to AddressFamily.InterNetworkV4, IPAddress.Any, and a port selected by the system (ephemeral port 0).
To use AddressFamily.InterNetworkV6, create a new IPEndPoint that specifies this AddressFamily. A Socket will be created that can connect to both IPv4 and IPv6 hosts. This is called a "dual stack", allowing clients to connect to both IPv4 and IPv6 servers, and allowing servers to accept connections from both IPv4 and IPv6 clients.
If IPEndPoint.Any is not desired, specify the hostname or address in the constructor.
If a random ephemeral port is not desired, specify the port or range in the constructor.