TLS almost connects. Needs read and write logic finished.
This commit is contained in:
1 parent
e0c0e2c07e
commit
5feabd0fde
10 files changed
+45
-27
No files matched your search
+7
-1
@@ -4,6 +4,7 @@
|
||||
#include "File.h"
|
||||
#include "Log.h"
|
||||
#include "IPAddress.h"
|
||||
#include "TLSInfo.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
@@ -16,8 +17,13 @@ int main(int argc, char **argv) {
|
||||
std::string ipAddress = "0.0.0.0";
|
||||
|
||||
core::EPoll ePoll;
|
||||
|
||||
core::TLSInfo tlsInfo;
|
||||
tlsInfo.cACertificate = "certs/cert.pem";
|
||||
tlsInfo.certificate = "certs/cert.pem";
|
||||
tlsInfo.key = "certs/key.pem";
|
||||
|
||||
core::TCPServer console(ePoll, core::IPAddress(ipAddress, 1027));
|
||||
core::TCPServer console(ePoll, core::IPAddress(ipAddress, 1027), &tlsInfo);
|
||||
|
||||
console.commands.add(ePoll, "threads");
|
||||
console.commands.add(console, "consoles");
|
||||
|
||||
Reference in new issue
Block a user