xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
net
sockets
ip_packet_information.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../ip_address.hpp
"
6
#include "
../../iequatable.hpp
"
7
9
#undef unix
11
13
namespace
xtd
{
15
namespace
net
{
17
namespace
sockets
{
19
class
socket
;
21
37
class
core_export_
ip_packet_information
:
public
xtd::object
,
public
xtd::iequatable
<xtd::net::sockets::ip_packet_information> {
38
public
:
40
43
ip_packet_information
() =
default
;
45
47
ip_packet_information
(
ip_packet_information
&&) =
default
;
48
ip_packet_information
(
const
ip_packet_information
&) =
default
;
49
auto
operator =(
const
ip_packet_information
&) ->
ip_packet_information
& =
default
;
51
53
57
[[nodiscard]]
auto
address
() const noexcept -> const
xtd
::
net
::
ip_address
&;
58
61
[[nodiscard]] auto
interface
() const noexcept ->
xtd
::
int32
;
63
65
70
[[nodiscard]] auto
equals
(const
xtd
::
object
& obj) const noexcept ->
bool
override;
74
[[nodiscard]] auto
equals
(const
ip_packet_information
& other) const noexcept ->
bool
override;
75
78
[[nodiscard]] auto
get_hash_code
() const noexcept ->
xtd
::
usize
override;
80
81
private:
82
friend class socket;
83
xtd
::
net
::
ip_address
address_;
84
xtd
::
int32
address_interface_ = 0;
85
};
86
}
87
}
88
}
xtd::iequatable
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition
iequatable.hpp:23
xtd::net::ip_address
Provides an Internet Protocol (IP) address.
Definition
ip_address.hpp:42
xtd::net::sockets::ip_packet_information::get_hash_code
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
xtd::net::sockets::ip_packet_information::ip_packet_information
ip_packet_information()=default
Creates an empty xtd::net::sockets::ip_packet_information instance.
xtd::net::sockets::ip_packet_information::equals
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
xtd::net::sockets::ip_packet_information::address
auto address() const noexcept -> const xtd::net::ip_address &
Gets the origin information of the packet that was received as a result of calling the xtd::net::sock...
xtd::net::sockets::ip_packet_information::interface
auto interface() const noexcept -> xtd::int32
Gets the network interface information that is associated with a call to xtd::net::sockets::socket::r...
xtd::net::sockets::socket
Implements the Berkeley sockets interface.
Definition
socket.hpp:74
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
core_export_
#define core_export_
Define shared library export.
Definition
core_export.hpp:13
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
iequatable.hpp
Contains xtd::iequatable interface.
xtd::net::sockets
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition
address_family.hpp:16
xtd::net
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition
cookie_exception.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
ip_address.hpp
Contains xtd::net::ip_address class.
Generated on
for xtd by
Gammasoft
. All rights reserved.