CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
ip_packet_information.h
1
2#pragma once
3
4#include <system/shared_ptr.h>
5#include <system/object.h>
6
7#include <net/ip_address.h>
8
9namespace System {
10namespace Net {
11namespace Sockets {
12
17class ASPOSECPP_SHARED_CLASS IPPacketInformation : public System::Object
18{
23
25 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29 friend ASPOSECPP_SHARED_API bool operator ==(IPPacketInformation left, IPPacketInformation right);
30 friend ASPOSECPP_SHARED_API bool operator !=(IPPacketInformation left, IPPacketInformation right);
31
32public:
38 ASPOSECPP_SHARED_API int32_t get_Interface();
39
43 ASPOSECPP_SHARED_API IPPacketInformation(System::SharedPtr<IPAddress> address, int32_t networkInterface);
44
48 ASPOSECPP_SHARED_API bool Equals(System::SharedPtr<Object> comparand) override;
50 ASPOSECPP_SHARED_API int32_t GetHashCode() const override;
51
53 ASPOSECPP_SHARED_API IPPacketInformation();
54
55private:
59 int32_t m_networkInterface;
60};
61
62ASPOSECPP_SHARED_API bool operator ==(IPPacketInformation left, IPPacketInformation right);
63ASPOSECPP_SHARED_API bool operator !=(IPPacketInformation left, IPPacketInformation right);
64} // namespace Sockets
65} // namespace Net
66} // namespace System
Represents information about the packet. Objects of this class should only be allocated using System:...
Definition: ip_packet_information.h:18
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
bool Equals(System::SharedPtr< Object > comparand) override
Compares two objects using C# Object.Equals semantics.
IPPacketInformation(System::SharedPtr< IPAddress > address, int32_t networkInterface)
Constructs a new instance.
System::SharedPtr< IPAddress > get_Address()
Returns the address from which the package is received.
IPPacketInformation()
Constructs a new instance.
int32_t get_Interface()
Returns the network interface information.
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
bool operator==(IPPacketInformation left, IPPacketInformation right)
bool operator!=(IPPacketInformation left, IPPacketInformation right)
Definition: db_command.h:9