LeviLamina
Loading...
Searching...
No Matches
HttpConnection.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ContextProxy.h"
7#include "mc/external/sigslot/has_slots.h"
8#include "mc/external/sigslot/signal_with_thread_policy.h"
9#include "mc/external/sigslot/single_threaded.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace NetherNet { class HttpServer; }
15namespace webrtc { class PendingTaskSafetyFlag; }
16namespace webrtc { class Socket; }
17// clang-format on
18
19namespace NetherNet {
20
21class HttpConnection : public ::NetherNet::ContextProxy,
22 public ::sigslot::has_slots<::sigslot::single_threaded>,
23 public ::std::enable_shared_from_this<::NetherNet::HttpConnection> {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<
28 8,
29 48,
31 SignalClosed;
32 ::ll::TypedStorage<8, 8, ::NetherNet::HttpServer&> mServer;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::webrtc::Socket>> mSocket;
34 ::ll::TypedStorage<8, 32, ::std::string> mBuffer;
35 ::ll::TypedStorage<8, 8, ::webrtc::scoped_refptr<::webrtc::PendingTaskSafetyFlag>> mSafetyFlag;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 HttpConnection& operator=(HttpConnection const&);
41 HttpConnection(HttpConnection const&);
42 HttpConnection();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ~HttpConnection() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI void _onCloseEvent(::webrtc::Socket*, int);
54
55 MCAPI void _onReadEvent(::webrtc::Socket*);
56 // NOLINTEND
57};
58
59} // namespace NetherNet
Definition ContextProxy.h:18
Definition HttpServer.h:23
Definition has_slots.h:8
Definition signal_with_thread_policy.h:8
Definition PendingTaskSafetyFlag.h:16
Definition Socket.h:12