5#include "../ip_address.hpp"
6#include "../../string.hpp"
76 send_packets_element(
const std::vector<xtd::byte>& buffer,
size_t offset,
size_t count,
bool end_of_packet);
124 std::vector<xtd::byte>
buffer() const noexcept;
130 size_t count() const noexcept;
135 bool end_of_packet() const noexcept;
141 const
xtd::
string& file_path() const noexcept;
151 size_t offset() const noexcept;
155 std::vector<
xtd::
byte> buffer_;
157 bool end_of_packet_ = false;
158 xtd::
string file_path_;
159 std::ifstream* file_stream_ =
nullptr;
161 bool delete_file_stream_when_destroy_ = false;
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Represents an element in a xtd::net::sockets::send_packets_element array.
Definition send_packets_element.hpp:41
send_packets_element(std::ifstream &file_stream, size_t offset, size_t count, bool end_of_packet)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified r...
send_packets_element(const std::vector< xtd::byte > &buffer)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified b...
send_packets_element()=default
Initializes a new instance of the xtd::net::sockets::send_packets_element class.
send_packets_element(const xtd::string &file_path, size_t offset, size_t count)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified r...
std::vector< xtd::byte > buffer() const noexcept
Gets the buffer to be sent if the xtd::net::sockets::send_packets_element object was initialized with...
send_packets_element(const std::vector< xtd::byte > &buffer, size_t offset, size_t count, bool end_of_packet)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified r...
std::reference_wrapper< std::ifstream > ifstream_ref
Represent ta std::ifstream reference.
Definition send_packets_element.hpp:47
send_packets_element(const xtd::string &file_path)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified f...
send_packets_element(const xtd::string &file_path, size_t offset, size_t count, bool end_of_packet)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified r...
send_packets_element(const std::vector< xtd::byte > &buffer, size_t offset, size_t count)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified r...
send_packets_element(std::ifstream &file_stream)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified F...
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
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.hpp:181
@ 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