9 #include "../../ustring.h" 10 #include "../ip_address.h" 73 send_packets_element(
const std::vector<byte_t>& buffer,
size_t offset,
size_t count,
bool end_of_packet);
89 send_packets_element(std::ifstream& file_stream,
size_t offset,
size_t count,
bool end_of_packet);
121 std::vector<byte_t> buffer() const noexcept;
127 size_t count() const noexcept;
132 bool end_of_packet() const noexcept;
138 const
xtd::
ustring& file_path() const noexcept;
143 std::optional<
ifstream_ref> file_stream() const noexcept;
148 size_t offset() const noexcept;
152 std::vector<byte_t> buffer_;
154 bool end_of_packet_ = false;
156 std::ifstream* file_stream_ =
nullptr;
158 bool delete_file_stream_when_destroy_ = false;
Implements the Berkeley sockets interface.
Definition: socket.h:68
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Represents an element in a xtd::net::sockets::send_packets_element array.
Definition: send_packets_element.h:38
Socket options apply to all sockets.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:30
std::reference_wrapper< std::ifstream > ifstream_ref
Represent ta std::ifstream reference.
Definition: send_packets_element.h:44