LeviLamina
Loading...
Searching...
No Matches
WebSocketCommunicator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/websockets/CloseStatusCode.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
14public:
15 // WebSocketCommunicator inner types define
16 enum class SocketType : uchar {
17 None = 0,
18 Client = 1,
19 Server = 2,
20 };
21
22public:
23 // member variables
24 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~WebSocketCommunicator() = default;
45
46 // vIndex: 1
47 virtual bool shouldSerialize();
48
49 // vIndex: 2
50 virtual void onSerialize();
51
52 // vIndex: 3
53 virtual void onReceive(::RakWebSocketDataFrame const&);
54
55 // vIndex: 4
56 virtual void onClose(::CloseStatusCode, ::std::string const&);
57
58 // vIndex: 5
59 virtual void onConnected(::std::string const&);
60
61 // vIndex: 6
62 virtual void onPostClosed();
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74
75 // NOLINTEND
76};
Definition RakWebSocketDataFrame.h:13
Definition WebSocketCommunicator.h:13
Definition Alias.h:14