LeviLamina
Loading...
Searching...
No Matches
OpenSSLAesAdapter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/lan/AesAdapter.h"
7#include "mc/deps/nether_net/utils/ErrorOr.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace rtc { class SocketAddress; }
12// clang-format on
13
14namespace NetherNet {
15
16class OpenSSLAesAdapter : public ::NetherNet::AesAdapter {
17public:
18 // member variables
19 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 OpenSSLAesAdapter& operator=(OpenSSLAesAdapter const&);
26 OpenSSLAesAdapter(OpenSSLAesAdapter const&);
27 OpenSSLAesAdapter();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::NetherNet::ErrorOr<void, ::std::error_code> SetKey(uint64 id) /*override*/;
33
34 virtual int Send(void const* pv, uint64 cb) /*override*/;
35
36 virtual int SendTo(void const* pv, uint64 cb, ::rtc::SocketAddress const& addr) /*override*/;
37
38 virtual int Recv(void* pv, uint64 cb, int64* timestamp) /*override*/;
39
40 virtual int RecvFrom(void* pv, uint64 cb, ::rtc::SocketAddress* paddr, int64* timestamp) /*override*/;
41
42 virtual ~OpenSSLAesAdapter() /*override*/ = default;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCNAPI ::NetherNet::ErrorOr<void, ::std::error_code> $SetKey(uint64 id);
49
50 MCNAPI int $Send(void const* pv, uint64 cb);
51
52 MCNAPI int $SendTo(void const* pv, uint64 cb, ::rtc::SocketAddress const& addr);
53
54 MCNAPI int $Recv(void* pv, uint64 cb, int64* timestamp);
55
56 MCNAPI int $RecvFrom(void* pv, uint64 cb, ::rtc::SocketAddress* paddr, int64* timestamp);
57
58
59 // NOLINTEND
60
61public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftableForHasSlots();
65
66 MCNAPI static void** $vftableForSocket();
67 // NOLINTEND
68};
69
70} // namespace NetherNet
Definition AesAdapter.h:11
MCAPI int $Send(void const *pv, uint64 cb)
static MCAPI void ** $vftableForHasSlots()
MCAPI int $SendTo(void const *pv, uint64 cb, ::rtc::SocketAddress const &addr)
MCAPI int $Recv(void *pv, uint64 cb, int64 *timestamp)
MCAPI int $RecvFrom(void *pv, uint64 cb, ::rtc::SocketAddress *paddr, int64 *timestamp)
MCAPI ::NetherNet::ErrorOr< void, ::std::error_code > $SetKey(uint64 id)
static MCAPI void ** $vftableForSocket()
Definition SocketAddress.h:12
Definition Alias.h:14