CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
end_point.h
1
2#pragma once
3
4#include <system/object.h>
5#include <system/shared_ptr.h>
6
7#include <net/socket_address.h>
8#include <net/sockets/address_family.h>
9
10namespace System { namespace Details {
11ASPOSECPP_3RD_PARTY_CLASS(io_endpoint_impl);
12}} // namespace System::Details
13
14namespace System { namespace Net {
15
20class ASPOSECPP_SHARED_CLASS ABSTRACT EndPoint : public System::Object
21{
23 typedef EndPoint ThisType;
26
28 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
30 ASPOSECPP_SHARED_RTTI_INFO_DECL();
31
32public:
39 virtual ASPOSECPP_SHARED_API System::SharedPtr<EndPoint> Create(System::SharedPtr<SocketAddress> socketAddress);
40
42 typedef std::shared_ptr<System::Details::io_endpoint_impl> ImplPtr;
43
46 virtual ASPOSECPP_SHARED_API ImplPtr GetImpl() const = 0;
47};
48}} // namespace System::Net
The abstract class contains a network address. Objects of this class should only be allocated using S...
Definition: end_point.h:21
virtual System::Net::Sockets::AddressFamily get_AddressFamily()
Returns the address family to which the current instance belongs.
std::shared_ptr< System::Details::io_endpoint_impl > ImplPtr
A pointer to implementation.
Definition: end_point.h:42
virtual System::SharedPtr< EndPoint > Create(System::SharedPtr< SocketAddress > socketAddress)
Create a new instance of the EndPoint class using the specified socket address.
virtual ImplPtr GetImpl() const =0
Returns a pointer to implementation.
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
AddressFamily
Enumerates the address families.
Definition: address_family.h:12
Definition: db_command.h:9