6#include "../../io/file_access.hpp"
7#include "../../io/stream.hpp"
8#include "../../object_closed_exception.hpp"
9#include "../../not_supported_exception.hpp"
80 bool can_seek() const noexcept override;
84 bool can_timeout() const noexcept override;
88 bool can_write() const noexcept override;
95 virtual
bool data_available() const;
110 int32 read_timeout() const override;
113 void read_timeout(
int32 value) override;
117 int32 write_timeout() const override;
120 void write_timeout(
int32 value) override;
133 void flush() override;
135 using
xtd::io::stream::read;
152 using
xtd::io::stream::write;
172 bool owns_socket =
false;
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:59
Provides a generic view of a sequence of bytes. This is an abstract class.
Definition stream.hpp:40
Provides the underlying stream of data for network access.
Definition network_stream.hpp:40
bool can_read() const noexcept override
Gets a value indicating whether the current stream supports reading.
network_stream(const xtd::net::sockets::socket &socket, xtd::io::file_access access)
Initializes a new instance of the network_stream class for the specified xtd::net::sockets::socket wi...
network_stream(const xtd::net::sockets::socket &socket)
Creates a new instance of the network_stream class for the specified xtd::net::sockets::socket.
network_stream(const xtd::net::sockets::socket &socket, bool owns_socket)
Initializes a new instance of the xtd::net::sockets::network_stream class for the specified xtd::net:...
network_stream(const xtd::net::sockets::socket &socket, xtd::io::file_access access, bool owns_socket)
Initializes a new instance of the network_stream class for the specified xtd::net::sockets::socket wi...
Implements the Berkeley sockets interface.
Definition socket.hpp:76
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
file_access
Defines constants for read, write, or read/write access to a file. This enumeration has a flags attri...
Definition file_access.hpp:15
@ read_write
The file is a read_write file. The file is part of the operating read_write or is used exclusively by...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::net::sockets::socket class.