Removed 'close' from streams

This commit is contained in:
Andrew Golovashevich 2026-01-25 23:58:08 +03:00
parent 65b6aedf86
commit a89d8a0a1c
3 changed files with 2 additions and 10 deletions

View File

@ -250,7 +250,7 @@ namespace LdH::Sockets::Berkeley {
this->_finish_usage(); this->_finish_usage();
} }
void close() override { void close() {
this->_close(); this->_close();
} }

View File

@ -222,7 +222,7 @@ namespace LdH::Sockets::Berkeley {
return closed; return closed;
} }
void close() override { void close() {
this->_close("Socket is busy with reading or writing"); this->_close("Socket is busy with reading or writing");
} }

View File

@ -7,8 +7,6 @@ namespace LdH::Streams {
public: public:
virtual bool write(std::size_t *, char const *) = 0; virtual bool write(std::size_t *, char const *) = 0;
virtual void close() = 0;
virtual ~OutputStream() noexcept = 0; virtual ~OutputStream() noexcept = 0;
}; };
@ -16,8 +14,6 @@ namespace LdH::Streams {
public: public:
virtual bool read(std::size_t *, char *) = 0; virtual bool read(std::size_t *, char *) = 0;
virtual void close() = 0;
virtual ~InputStream() noexcept = 0; virtual ~InputStream() noexcept = 0;
}; };
@ -25,8 +21,6 @@ namespace LdH::Streams {
public: public:
virtual void sendOne(std::size_t, char const *) = 0; virtual void sendOne(std::size_t, char const *) = 0;
virtual void close() = 0;
virtual ~OutputMessanger() noexcept = 0; virtual ~OutputMessanger() noexcept = 0;
}; };
@ -35,8 +29,6 @@ namespace LdH::Streams {
public: public:
virtual void recvOneTruncating(std::size_t *, char *) = 0; virtual void recvOneTruncating(std::size_t *, char *) = 0;
virtual void close() = 0;
virtual ~InputMessanger() noexcept = 0; virtual ~InputMessanger() noexcept = 0;
}; };
} }