Added some basic HTTP and ip address parsing.
This commit is contained in:
@@ -36,20 +36,12 @@ void Stream::flush() {}
|
||||
|
||||
mijin::Task<StreamError> Stream::c_readRaw(std::span<std::uint8_t> buffer, const ReadOptions& options, std::size_t* outBytesRead)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) options;
|
||||
(void) outBytesRead;
|
||||
|
||||
MIJIN_ASSERT(!getFeatures().async || !getFeatures().read, "Stream advertises async read, but doesn't implement it.");
|
||||
co_return StreamError::NOT_SUPPORTED;
|
||||
co_return readRaw(buffer, options, outBytesRead);
|
||||
}
|
||||
|
||||
mijin::Task<StreamError> Stream::c_writeRaw(std::span<const std::uint8_t> buffer)
|
||||
{
|
||||
(void) buffer;
|
||||
|
||||
MIJIN_ASSERT(!getFeatures().async || !getFeatures().write, "Stream advertises async write, but doesn't implement it.");
|
||||
co_return StreamError::NOT_SUPPORTED;
|
||||
co_return writeRaw(buffer);
|
||||
}
|
||||
|
||||
StreamError Stream::readBinaryString(std::string& outString)
|
||||
|
||||
Reference in New Issue
Block a user