PowerTCP SSH and SFTP for .NET
IPEndPoint Constructor(String,AddressFamily,Int32,Int32)




A hostname or string address. Empty string resolves to the first local network interface in the specified AddressFamily.
The AddressFamily to match if resolving a hostname.
The port to bind to.
The range of ports, starting at port, to attempt to bind to.
Creates an IPEndPoint using a hostname or address, address family, port and range.
Syntax
'Declaration
 
Public Function New( _
   ByVal hostNameOrAddress As String, _
   ByVal addressFamily As AddressFamily, _
   ByVal port As Integer, _
   ByVal range As Integer _
)
'Usage
 
Dim hostNameOrAddress As String
Dim addressFamily As AddressFamily
Dim port As Integer
Dim range As Integer
 
Dim instance As New IPEndPoint(hostNameOrAddress, addressFamily, port, range)
public IPEndPoint( 
   string hostNameOrAddress,
   AddressFamily addressFamily,
   int port,
   int range
)
public: IPEndPoint( 
   string* hostNameOrAddress,
   AddressFamily addressFamily,
   int port,
   int range
)
public:
IPEndPoint( 
   String^ hostNameOrAddress,
   AddressFamily addressFamily,
   int port,
   int range
)

Parameters

hostNameOrAddress
A hostname or string address. Empty string resolves to the first local network interface in the specified AddressFamily.
addressFamily
The AddressFamily to match if resolving a hostname.
port
The port to bind to.
range
The range of ports, starting at port, to attempt to bind to.
Remarks

The socket will try to bind to the specified port. Upon failure, it will try with each successive port up to (port + range), until successful. An Exception is raised if all binding attempts fail.

The hostNameOrAddress parameter is limited to 126 characters in pre-4.0 versions of the .NET Framework, and 255 characters in versions 4.0 and higher.

See Also

Reference

IPEndPoint Class
IPEndPoint Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic