xtd 0.2.0
Loading...
Searching...
No Matches
ip_packet_information.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../ip_address.hpp"
6
8#undef unix
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
18 class socket;
20
37 public:
39
44
48 ip_packet_information& operator =(const ip_packet_information&) = default;
50
52
56 const xtd::net::ip_address& address() const noexcept;
57
60 int32 interface() const noexcept;
62
63 private:
64 friend class socket;
65 xtd::net::ip_address address_;
66 int32 address_interface_ = 0;
67 };
68 }
69 }
70}
Represent an interface class.
Definition interface.hpp:31
Provides an Internet Protocol (IP) address.
Definition ip_address.hpp:37
Gets the network interface information that is associated with a call to xtd::net::sockets::socket::r...
Definition ip_packet_information.hpp:36
ip_packet_information()=default
Creates an empty xtd::net::sockets::ip_packet_information instance.
const xtd::net::ip_address & address() const noexcept
Gets the origin information of the packet that was received as a result of calling the xtd::net::sock...
Implements the Berkeley sockets interface.
Definition socket.hpp:74
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ socket
Socket options apply to all sockets.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10