xtd 0.2.0
Loading...
Searching...
No Matches
ip_packet_information.h
Go to the documentation of this file.
1
4#pragma once
5#include "../ip_address.h"
6
8#undef unix
10
12namespace xtd {
14 namespace net {
16 namespace sockets {
18 class socket;
20
35 public:
37
42
46 ip_packet_information& operator =(const ip_packet_information&) = default;
48
50
54 const xtd::net::ip_address& address() const noexcept;
55
58 int32 interface() const noexcept;
60
61 private:
62 friend class socket;
63 xtd::net::ip_address address_;
64 int32 address_interface_ = 0;
65 };
66 }
67 }
68}
Represent an interface class.
Definition interface.h:31
Provides an Internet Protocol (IP) address.
Definition ip_address.h:35
Gets the network interface information that is associated with a call to xtd::net::sockets::socket::r...
Definition ip_packet_information.h:34
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.h:71
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
@ socket
Socket options apply to all sockets.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10