blob: 9050ad8ff1ae590aaa03ca98e802559d08305d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//
// Created by Gyuhwan Park on 2022/04/30.
//
#ifndef ULALACA_XRDPSTREAM_HPP
#define ULALACA_XRDPSTREAM_HPP
#include <memory>
#include <functional>
extern "C" {
#include "arch.h"
#include "parse.h"
#include "os_calls.h"
#include "defines.h"
};
class XrdpStream {
public:
using Stream = stream;
using StreamDeleter = std::function<void(Stream *)>;
XrdpStream(size_t size);
explicit operator Stream const *() const;
template<typename T>
XrdpStream &operator<< (T value);
private:
std::unique_ptr<Stream, StreamDeleter> _stream;
};
#endif //ULALACA_XRDPSTREAM_HPP
|