158 bool end_of_packet_ = false;
159 xtd::
string file_path_;
160 std::ifstream* file_stream_ =
nullptr;
162 bool delete_file_stream_when_destroy_ = false;
Contains xtd::array class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
size_t count() const noexcept
Gets the count of bytes to be sent.
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...
const xtd::string & file_path() const noexcept
Gets the filename of the file to send if the xtd::net::sockets::send_packets_element object was initi...
send_packets_element(const xtd::array< 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...
std::optional< ifstream_ref > file_stream() const noexcept
Gets the object representation of the file to send if the xtd::net::sockets::send_packets_element obj...
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...
send_packets_element(const xtd::array< 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...
xtd::ref< std::ifstream > ifstream_ref
Represent ta std::ifstream reference.
Definition send_packets_element.hpp:48
send_packets_element(const xtd::array< 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::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...
bool end_of_packet() const noexcept
Gets a bool value that indicates if this element should not be combined with the next element in a si...
send_packets_element(std::ifstream &file_stream)
Initializes a new instance of the xtd::net::sockets::send_packets_element class using the specified F...
size_t offset() const noexcept
Gets the offset, in bytes, from the beginning of the data buffer or file to the location in the buffe...
xtd::array< xtd::byte > buffer() const noexcept
Gets the buffer to be sent if the xtd::net::sockets::send_packets_element object was initialized with...
Implements the Berkeley sockets interface.
Definition socket.hpp:77
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::reference_wrapper_object< type_t > ref
The xtd::ref object is a reference wrapper.
Definition ref.hpp:25
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:25
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition address_family.hpp:16
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::net::ip_address class.
Contains xtd::string alias.