6#include <net/ip_address.h>
7#include <net/end_point.h>
24 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
26 ASPOSECPP_SHARED_RTTI_INFO_DECL();
30 static ASPOSECPP_SHARED_API
const int32_t
MinPort;
32 static ASPOSECPP_SHARED_API
const int32_t
MaxPort;
54 ASPOSECPP_SHARED_API
void set_Port(int32_t value);
59 ASPOSECPP_SHARED_API
IPEndPoint(int64_t address, int32_t port);
The abstract class contains a network address. Objects of this class should only be allocated using S...
Definition: end_point.h:21
std::shared_ptr< System::Details::io_endpoint_impl > ImplPtr
A pointer to implementation.
Definition: end_point.h:42
Represents a network endpoint that contains an IP address and a port. Objects of this class should on...
Definition: ip_end_point.h:17
bool Equals(System::SharedPtr< Object > comparand) override
Compares objects using C# Object.Equals semantics.
static const int32_t AnyPort
A value that indicates if any port can be used.
Definition: ip_end_point.h:35
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
int32_t get_Port()
Gets the port number.
ImplPtr GetImpl() const override
Returns a pointer to implementation.
System::SharedPtr< EndPoint > Create(System::SharedPtr< SocketAddress > socketAddress) override
Create a new instance of the EndPoint class using the specified socket address.
IPEndPoint(System::SharedPtr< IPAddress > address, int32_t port)
Constructs a new instance.
static System::SharedPtr< IPEndPoint > IPv6Any
The endpoint for any IPv6 address and any port.
Definition: ip_end_point.h:39
static const int32_t MaxPort
The maximum port number.
Definition: ip_end_point.h:32
static const int32_t MinPort
The minimal port number.
Definition: ip_end_point.h:30
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
System::Net::Sockets::AddressFamily get_AddressFamily() override
Returns the address family to which the current instance belongs.
static System::SharedPtr< IPEndPoint > Any
The endpoint for any IPv4 address and any port.
Definition: ip_end_point.h:37
void set_Address(System::SharedPtr< IPAddress > value)
Sets the endpoint address.
void set_Port(int32_t value)
Sets the port number.
IPEndPoint(int64_t address, int32_t port)
Constructs a new instance.
System::SharedPtr< IPAddress > get_Address()
Gets the endpoint address.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
AddressFamily
Enumerates the address families.
Definition: address_family.h:12
Definition: db_command.h:9