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);
122 std::vector<xtd::byte>
buffer() const noexcept;
128 size_t count() const noexcept;
133 bool end_of_packet() 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;
Represents an element in a xtd::net::sockets::send_packets_element array.
Definition send_packets_element.h:39
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 xtd::ustring &file_path)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified f...
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(const xtd::ustring &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 xtd::ustring &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...
send_packets_element()=default
Initializes a new instance of the xtd::net::sockets::send_packets_element class.
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.h:45
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.h:71
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define core_export_
Define shared library export.
Definition core_export.h:13
@ 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