Avionics
Dropship Simulator
RakNet.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Bus.h"
4 
5 #include "D:/Rise Base/RakNet/Source/RakPeerInterface.h"
6 
7 using namespace RakNet;
8 
9 namespace Devices
10 {
11  struct RakNetConfig
12  {
13  bool enabled;
14 
16  int maxPeer;
17 
18  bool sendEmails;
19  std::string smtpServer;
21  std::string senderName;
22  std::string senderEmail;
23  std::string password;
24  std::string recipientName;
25  std::string recipientEmail;
26  bool useSsl;
27  std::string hostAddress;
28  };
29 
30  class RakNet
31  {
32  private:
33  Logger* logger = nullptr;
34  RakNetConfig* config = nullptr;
35  Bus* bus = nullptr;
36 
37  RakPeerInterface* rak4Peers = nullptr;
38  SystemAddress serverC;
39  SystemAddress displayC;
40  Packet* p = nullptr;
41 
42  void RakNetMessageHandlerPeer();
43  void SendInitialData() const;
44 
45  public:
46  void AsyncEmailSender(std::string subject, std::string body = "", int severity = 0) const;
47  void FrameMove(float);
48  //void SendToPeer(SystemAddress, void*, DWORD, PacketReliability reliability, bool broadcast);
49  void SendEmail(std::string subject, std::string body = "", int severity = 0);
50 
51  //RakNet() {};
52  void Initialize(Logger*, RakNetConfig*, Bus*);
53  ~RakNet();
54  };
55 }
SystemAddress displayC
Definition: RakNet.h:39
Definition: Logger.h:5
Bus bus
Definition: Avionics.cpp:18
okay, the portable keyboard numbers don't work like the outside keypad because the outside keypad is ...
Definition: Analog.cpp:3
Config config
Definition: Avionics.cpp:22
std::string recipientEmail
Definition: RakNet.h:25
Definition: Bus.h:12
std::string smtpServer
Definition: RakNet.h:19
Logger logger
Definition: Avionics.cpp:17
std::string senderName
Definition: RakNet.h:21
std::string hostAddress
Definition: RakNet.h:27
std::string recipientName
Definition: RakNet.h:24
void FrameMove(double fTime, float fElapsedTime)
Definition: Avionics.cpp:347
std::string senderEmail
Definition: RakNet.h:22
std::string password
Definition: RakNet.h:23
SystemAddress serverC
Definition: RakNet.h:38