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
13class WebSocketCommunicator {
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
36 WebSocketCommunicator& operator=(WebSocketCommunicator const&);
37 WebSocketCommunicator(WebSocketCommunicator const&);
38 WebSocketCommunicator();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~WebSocketCommunicator() = default;
44
45 virtual bool shouldSerialize();
46
47 virtual void onSerialize();
48
49 virtual void onReceive(::RakWebSocketDataFrame const&);
50
51 virtual void onClose(::CloseStatusCode, ::std::string const&);
52
53 virtual void onConnected(::std::string const&);
54
55 virtual void onPostClosed();
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI_C void _setSocketType(::WebSocketCommunicator::SocketType socketType);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67
68 // NOLINTEND
69};
Definition RakWebSocketDataFrame.h:13
Definition Alias.h:14