5 #include "../ip_address.h" 6 #include "../../ustring.h" 74 send_packets_element(
const std::vector<xtd::byte>& buffer,
size_t offset,
size_t count,
bool end_of_packet);
90 send_packets_element(std::ifstream& file_stream,
size_t offset,
size_t count,
bool end_of_packet);
122 std::vector<xtd::byte> buffer() const noexcept;
128 size_t count() const noexcept;
133 bool end_of_packet() const noexcept;
139 const
xtd::
ustring& file_path() const noexcept;
144 std::optional<
ifstream_ref> file_stream() const noexcept;
149 size_t offset() const noexcept;
153 std::vector<
xtd::
byte> buffer_;
155 bool end_of_packet_ = false;
157 std::ifstream* file_stream_ =
nullptr;
159 bool delete_file_stream_when_destroy_ = false;
Implements the Berkeley sockets interface.
Definition: socket.h:71
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:46
Represents an element in a xtd::net::sockets::send_packets_element array.
Definition: send_packets_element.h:39
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:32
std::reference_wrapper< std::ifstream > ifstream_ref
Represent ta std::ifstream reference.
Definition: send_packets_element.h:45
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition: types.h:39