HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
stream.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7namespace hi::inline v1 {
8
10protected:
11 bool connecting = false;
12
15 packet_buffer readBuffer;
16
19 packet_buffer writeBuffer;
20
21public:
25
28 virtual bool needToRead();
29
32 virtual bool needToWrite();
33
37 [[nodiscard]] virtual void handleReadyToReadEvent();
38
42 [[nodiscard]] virtual void handleReadyToWriteEvent();
43}
44
45} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:15
Definition packet_buffer.hpp:9
Definition stream.hpp:9
virtual bool needToWrite()
Check if the socket-stream needs to read.
virtual void handleReadyToReadEvent()
Handle ready-to-read event.
virtual bool needToRead()
Check if the socket-stream needs to read.
virtual void handleReadyToWriteEvent()
Handle ready-to-write event.
void handleConnect()
Handle connected event.